aFarkas / lazysizes

High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.
MIT License
17.47k stars 1.73k forks source link

bgset & mod_page_speed #466

Open dav11d opened 6 years ago

dav11d commented 6 years ago

bg-set doesn't seem to be working with mod_pagespeed (https://www.modpagespeed.com/) from google. Any ideas which filters to disable to get it working?

aFarkas commented 6 years ago

@dav11d I would need to see it in action. This means:

a) a testcase with a link b) a description of the additional environment c) a description of what is happening d) a description of what is expected

In some cases these descriptions can be very short because they are obvious, but say at least something.

Note: In case you are using bgset to mimic object-fit in IE I strongly suggest, that you use the the object-fit polyfill instead. It also support perf specific thing like progressive images which is not supported by object-fit.

dav11d commented 6 years ago

Managed to resolve it using data-pagespeed-no-defer

alpipego commented 6 years ago

@dav11d could you please still add

c) a description of what is happening d) a description of what is expected

and also a description of how to fix it.