Javascript Defer
The term is "defer" when you want JS to wait until the entire html page has been loaded before doing it's thing.
This is a good reference:
http://www.hunlock.com/blogs/Deferred_Javascript
Just insert
defer='defer' into the script tag. works for inline and included files.
tags: wait, delay, js, defer