I have a web structure like this:
- Head scripts (like Normalizer)
- Body starts
- HTML and Script containing jQuery 1
- HTML and Script containing jQuery 2
- HTML and Script containing jQuery 3
- Body ends
- jQuery loads here
- Other scripts (like G. Analytics)
The problem is that the HTML and Scripts contain jQuery code but jQuery is loaded last. How do I do to execute succesfully these Scripts once that jQuery has been loaded?
Please note the following restrictions:
- I cant load jQuery before the HTML and Scripts
- The jQuery Code needs to be where it is (Quick explanation: I will be loaded from an external source that changes often)
I tried putting the scripts on the function window.onload function but it does not work...
Any solutions?