Status: Accepted
Owner:
jmaes...@google.com
Labels: Type-Defect Priority-Medium
New issue 1032 by
jmaes...@google.com:
ModPagespeedLazyloadImagesAfterOnload off should not load images in hidden
divs.
https://code.google.com/p/modpagespeed/issues/detail?id=1032
Even though i have filter on
ModPagespeedEnableFilters lazyload_images
it loads images, which are inside hidden divs, in my case i hide some divs
for mobile view.
I have tried enabling this filter
ModPagespeedLazyloadImagesAfterOnload off
it stops loading images below the fold, but still loads images inside
hidden divs.
using pagespeed mod version 1.9.32.2-4321
server apache 2.2
NOTE: this will require revisions to lazyload.js in order to account for
hidden / visibility:none DOM elements. We may still load them – lazily –
after onload if the above option is On, but we should definitely leave them
alone if it's off.
Interesting question: What will happen if the visibility of the image
changes? We're catching onscroll, but is there some way for us to capture
the style change? If there is not, it may not be possible to do this
transformation correctly.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings