Check out my latest project: JSBin - live JavaScript pastebin

Archive for the "onload" Tag

How to detect when an external library has loaded

Sometimes in a web app, you'll want to load a script externally. The only problem is if you need to reference something within the external library, which you should only do once it's definitely loaded. Here's a tip that works with all browsers to ensure the script is loaded before running your dependant code.