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.

Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Join the Conversation

1 Comment

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.