I mean, if the first functions declared are the first functions loaded?
Because, if so, I could add a var loaded = true to the end of the file to know if it is loaded (I know I can use onload, but I would like this alternative also).
A lot depends on the browser you are using. Depending on your requirements, you might benefit from a script loader. That way you could declaratively define what scripts you wanted to load, and the loader would ensure that they are loaded once. Also, here is a little more information about javascript loading.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With