load jQuery from source
What I like to do is to drop my local jquery.js and have it hosted somewhere else. But what if Google is down? So let\'s cod
If you use Firebug and see where jQuery gets loaded you can see taht Google successfully loaded it. Why it doesn't seem to work? Because requests are asynchronous and while your script runs synchronously it executes all steps before the first script gets loaded.
So:
etc etc.
What you should do is attach to onLoad event of your script loading elements and check for jQuery after they've loaded.
Script executes lightning fast compared to sending a request out to some server on the internet and getting results back for processing.
As I've read you're going to have problems detecting 404s using this technique. Suggested way would be to use Ajax (XHR) and then attach script element and add received content to it. This would be the most reliable way of doing it for all browsers.