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
It seems like both the post as well as the file are no longer hosted on the linked site. Do you have a copy of it?
Apparently part of the site seems to be down yes, you can find a copy here but be aware that all credits still are to Dan from vivabit.
http://www.skyrocket.be/downlo.....omReady.js
If i use this on an SSL protected site and the IE there will be a message that there are unprotected contents. I believe the IE messes this up:
document.write(“”);
if you write:
document.write(”);
with an empty src you will avoid these errors.
Bye,
Kars-T