domReady Ready to Unseat Window.onLoad?!
Published July 12th, 2006
window.onload (again)
I've been using a prerelease version of this for a couple of weeks, but I gather that the Powers That Walk Among Us have now blessed this script. domReady is supposed to let you attach events to DOM objects that aren't loaded yet, and will then take care of firing the event once the objects have formed. That would be really useful if it works. I just spent several days undoing my unobtrusive javascript after discovering that the event selectors I'd been using were the reason the whole site was so slow. I'll take fast over technically correct in a case like this. I wonder if domReady can help me out there?
Show Comments