including 3rd part javascript async and safe if main site is down
<p>I understand the techniques listed here for lazy loading and including javascript asynchronously. <a href="http://friendlybit.com/js/lazy-loading-asyncronous-javascript/" rel="nofollow">http://friendlybit.com/js/lazy-loading-asyncronous-javascript/</a></p>

<p>However, if you do it this way the 3rd party script seems to only be called AFTER onLoad. On a slow loading page that could take 20 seconds. If I don't add the function to the onload event then it will load our script quickly, BUT, if our site is unreachable for some reason the browser will spin it's wheels trying to load something that will eventually timeout and that will delay the onload event.</p>

<p>Is there a way to load 3rd party javascript quickly (before onload) but if the site is down or unreachable the browser doesn't go about spinning it's wheels forever and delaying onload?</p>
