Hello there,
I'm trying to find a practical example of something that uses this pattern, which dynamically loads javascript into a page that has already been loaded:
I have found numerous examples of this, however what I'm really looking for is an example that shows how to dynamically load a javascript file with functions, and then check to see if the page or function is loaded, and then execute the function. If you just execute the function after loading the javascript, it won't be fully loaded yet and the function won't fire.
I've been searching through the web for several hours trying to find a solution, but have not found a good one yet. Any help would be much appreciated!!!
Thank you,
Chris
I'm trying to find a practical example of something that uses this pattern, which dynamically loads javascript into a page that has already been loaded:
I have found numerous examples of this, however what I'm really looking for is an example that shows how to dynamically load a javascript file with functions, and then check to see if the page or function is loaded, and then execute the function. If you just execute the function after loading the javascript, it won't be fully loaded yet and the function won't fire.
I've been searching through the web for several hours trying to find a solution, but have not found a good one yet. Any help would be much appreciated!!!
Thank you,
Chris