My Lazy Load – Delayed Javascript Image Loader

I hereby load upon thee JS_BRAMUS.lazierLoad, a Javascript Image Lazy Loader for use the latest PrototypeJS beta release (1.6.0_r0) (which holds a brand spanking new document.viewport Object which “lets you calculate the dimensions and position of the browser’s viewport”).

lazierLoad automatically hooks itself to the page, finds all images and only loads those appearing “above the fold” resulting in faster page loads as the images not located in the viewport, are not loaded until they appear within it (viz. when the user scrolls down).

The idea for lazierLoad was inspired upon Lazy Load (which is built for use with jQuery), yet the code differs quite a lot.

Another Dailie, Bramus!, javascript, JS_BRAMUS, Webdevelopment

One Response to My Lazy Load – Delayed Javascript Image Loader

  1. Great idea if you are using heavy PNGs and a potential bandwith saver. *stumbles*

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>