DOM Ready for prototype

Geplaatst in Blogging Reeds 3 reacties

If you are tired of waiting for your whole page to load including images, flash, ads and movies before your javascript executes? Well then you are someone like me.

The YUI library we already had the YAHOO.util.Event.onAvailable() event but the people who prefer to use Prototype were left a little bit in the dark … untill now.

Dan at Vivabit created the DOM Ready extension for the Prototype framework which allows you to start executing code when the DOM is ready and all elements are available, leaving the images and other element loading in the background. Very nice work and something i’ve been waiting for a long time!

Edit: Apparently vivabit doesn’t offer the file for download anymore, you can find it here if you are still interested: http://www.skyrocket.be/download/prototype.domReady.js