html - LazyLoad with images wrapped inside divs -


i having issue use of lazyload plugin original appelsiini.net.

when using structure of

<img... /> <img... /> <img... /> 

that above works. having structure needed.

<div class="col-2-3">     <img lazyload-img ...> <div> <div class="col-1-3">     <p>title+desc image</p> <div> 

but usage - having no luck. have looked @ options, , tried find answers. did not.

is lazyload sequential img-tags? or can not done img-tags wrapped in divs?

thank you.

did try technique plugin page?

when images not sequential

after scrolling page lazy load loops though unloaded images. in loop checks if image has become visible. default loop stopped when first image below fold (not visible) found. based on following assumption. order of images on page same order of images in html code. layouts assumption might wrong. can control loading behaviour failure_limit option.

$("img.lazy").lazyload({ failure_limit : 10 });

setting failure_limit 10 causes plugin stop searching images load after finding 10 images below fold. if have funky layout set number high.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -