Jesse Skinner

addDOMLoadEvent Revisited

I've gone back and reworked addDOMLoadEvent. I got rid of the global variables and reduced the size down to 563 bytes!

For the new script and the demo pages, check out addDOMLoadEvent.

Update [Aug. 19, 2007]: Now the script preserves any existing window.onload function, and also executes functions instantly when called after the page has already loaded. But now the compressed version is a hefty 617 bytes.

Published on August 14th, 2007. © Jesse Skinner

About the author

Jesse Skinner

I'm Jesse Skinner, a freelance software engineer. Since 2001 I've been building web apps that last, and rescuing those that didn't. I'm available to take on one or two new clients. Here's how I work.

Contact Jesse

Need help with a project? Any questions? I'd love to hear from you.

Email me at [email protected]