html - jQuery Lazyload with highest z-index -


i need lazy load fullscreen website no scrolling, pages stacked ontop of each other z-index , changes pages switches z-index on elements. lazy load not seem see , page still tries load everything. elements have display:none , other have visibility: hidden.

i need script makes sure within in element highest z-index loads, else on hold until becomes element highest z-index.

here fiddle no js yet base if knows how this?

jsfiddle: http://jsfiddle.net/dreamsynk/dbngco7q/

if got time can write jquery plugin so, can use :in-viewport , :visible filter images, can pre-load images before become visible.

use data- attributes set image url, , use empty image photos, change desired attribute (src or background) corresponding data- attribute , should load.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -