Combining onloads
Monday May 18, 2009
A common cause of scripts breaking when you add more than one to the same page is where each tries to assign something different to the onload event.
The process of combining scripts together on the one page where more than one is trying to assign an onload event is much simpler if you can just do a straight substitution for each of the assignments. Well by adding a small function to the code we can do just that.
Combining onloads


How do you integrate this excellent idea with jQuery?
JQuery has its own version of this built in so that you don’t need to do it yourself.
See http://docs.jquery.com/How_jQuery_Works#Launching_Code_on_Document_Ready