crowell / modpagespeed_tmp

Automatically exported from code.google.com/p/modpagespeed
Apache License 2.0
0 stars 0 forks source link

Improve lazyload behavior #644

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As requested on 
http://stackoverflow.com/questions/15277981/is-there-a-way-to-lazyload-images-be
fore-they-become-visible-in-the-viewport-usi.

We currently have a buffer variable in the lazyload JS that will load images 
some number of pixels before the image is visible in the viewport, but no 
option exposed to configure that buffer. Add and expose an option to allow 
users to configure this.

Original issue reported on code.google.com by j...@google.com on 12 Mar 2013 at 7:07

GoogleCodeExporter commented 9 years ago

Original comment by jmara...@google.com on 18 Mar 2013 at 7:28

GoogleCodeExporter commented 9 years ago
We haven't yet exposed an explicit option for setting lazyload buffer pixels 
yet, but r3112 should cover the intent of the request and improve the loading 
behavior of lazyload. By default, 200 pixels of buffer are now added, and 
images that haven't been loaded by the onscroll event will now be loaded at 
onload.

Original comment by j...@google.com on 25 Jun 2013 at 2:26

GoogleCodeExporter commented 9 years ago

Original comment by j...@google.com on 25 Jun 2013 at 2:26