Comments
Article Comments (1 total)
Pablo Impallari, 24 May 2008
Response from PhpRiot:
Thanks Pablo. I did in fact discover this after publishing the first 5 articles (it's not actually clearly documented, just buried in the code). For the sake of consistency I continued to use the window load event but may update all the articles in the future accordingly.



Instead of using:
Event.observe(window, 'load', function() { ... your code ... });You should use:document.observe("dom:loaded", function() { ... your code ... });