W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > December 2012

[Bug 20246] Provide a system to observe nodes entering and leaving the viewport

From: <bugzilla@jessica.w3.org>
Date: Wed, 05 Dec 2012 16:32:47 +0000
To: public-webapps-bugzilla@w3.org
Message-ID: <bug-20246-2532-6OMSrvLj4n@http.www.w3.org/Bugs/Public/>

--- Comment #2 from louisremi <lrbabe@gmail.com> ---
@marcos One could want to load additional content once the user scrolls up to a
certain position in the page. This is what is done on makr.io[1] for example.

There are two libraries I know of that handle image lazy-loading: LazyLoad[2]
and lazyload[3]. I've also created a small script able to watch elements
stacked vertically in a common container[4].
All of these implementations have the limitations I mentioned in my initial
comment, but lazylod is capable of watching new images as they're added to the
document if they have an onload="lzld(this)" attribute.

[1] https://makr.io/
[2] https://github.com/darkwing/LazyLoad/blob/master/Source/LazyLoad.js
[3] https://github.com/vvo/lazyload/blob/master/lazyload.js
[4] http://jsbin.com/etuvav/5/edit

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 5 December 2012 16:32:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:04:28 UTC