javascript - Display specific DIV on html page while page is still displaying the content -
i have 4 div sections.
1. first div section has 5000 tables.each table has quick link 1 of below mentioned tables in 2nd or 3rd or 4th div.
2. 2d,3rd , 4th div section contains single table info.
my question is: have 1 button called expand all, when click on this, have expand div sections. since fist div taking more time load due huge data. wrote time display it.
var time_block=100; timercount = 0; $( ".displaynone" ).each(function( ) { var show_me=this; var show_me_time=time_block; timervar = settimeout(function({ display_parts(show_me,show_me_time); },time_block); time_block=time_block+200; timercount++; console.log('timeout='+timervar); }); function display_parts(x,y){ $(x).css('display','block'); }
now, problem is, when first div section starts loading, user can click on quick link jump 2nd div timer still loading contents.
but, scroll bar moves first div section , viewport displayes content of first div section.
i want display 2nd div section once user clicks on quick link in first div , let time load content in background. can help?
Comments
Post a Comment