javascript - How To Prevent Scrolling Until All images are loaded -


the scrollbar cannot scroll bottom due images not being loaded. how can update scrollbar when images loaded? appreciate no matter using javascript or jquery.

<div class="scrollbar">     <div class="thumb noselect" unselectable="on"><div class="end"> </div></div></div> <div class="viewport">     <div class="overview">         <ul class="pinkarrow">             ......             </div>         </ul>     </div> </div> 

first add overflow: hidden scrollbar.

then add following jquery code show scrollbar when images loaded:

(function($) {   $(window).load(function() {     $('.scrollbar').css('overflow', 'auto');   }); })(jquery); 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -