jvelociter (SVN) wrote:
+Event.observe(window, 'load', function()
I learned that the version of prototype we are using allows us to use:
document.observe("dom:loaded", function(){...});
This is better, since onload is triggered once all the components of the
page are loaded (including images), while dom:loaded is triggered as
soon as all the HTML was received, without waiting for other resources
to load. More info on
http://www.prototypejs.org/api/document/observe
--
Sergiu Dumitriu
http://purl.org/net/sergiu/