function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vivek KidambiVivek Kidambi 

Lazy load embedded page on visualforce

I have multiple pages embedded on visualforce page as tabs and need to lazyload the embedded pages. How do i do it?

<div class="u-container u-container--stretch" id="tabs"> 
          <ul class="test-class" id="mainTab" > 
            <li><a class="test-class" style="font-family: Arial;" href="#tab1" data-tabs-id="tab1" >tab1</a></li>
            <li><a class="test-class="font-family: Arial;" href="#tab2" data-tabs-id="tab2" >tab2</a></li>
    <div id="tab1"  class="test-class">
     <apex:include pageName="tab1page"/>
    <div id="tab2" class="test-class>
        <apex:include pageName="tab2page"/>