I\'m using a JavaScript upload script that says to run the initialize function as soon as the DOM is ready. I currently have it working just fine with either a call to the f
The easiest solution is using jQuery and its $(document).ready(function() { .... }); function. Instead of .... you put your own code.
$(document).ready(function() { .... });
....
Note that it basically does the same thing @Shadow2531 suggested, but also works in old browsers not supporting that event.