javascript - Loading images on a web page using mootools when user scrolls page down -
Does anyone have a library that will automatically load the images as a user scroll? The idea is that when the viewport changes, I want to add a user avatar to a wall. The related HTML would look something like this:
& lt; Div class = "comment" & gt; & Lt; A class = "avatar" rel = "nick" href = "user / nick" & gt; & Lt; / A & gt; & Lt; P & gt; The comment goes here & lt; / P & gt; & Lt; / Div & gt;
When the user scrolls down the page, then the HTML has to be changed in the following way:
& Lt; / A & gt; Additionally, it is possible to cache images to minimize traffic backend, if possible,
See also by David Walsh by a different author.
Comments
Post a Comment