How to ensure offsite javascript doesn't impede site performance?
<p>I need to include an offsite javascript file on my page, however I don't want it to be able to affect the performance of my site, in case the server where the javascript is on is down or not responding.</p>

<p>What I'd like to know, is if it's posible with javascript to make some sort of wrapper function to ensure that the page where the offsite javascript is hosted is responding within an acceptable timeframe.</p>

<p>I've considered adding the "defer" attribute to where I include the javascript, but that would as far as I know still leave the site hanging after the rest of the page is loaded.</p>

<p>If it's not possible to do in javascript are there any good alternatives?</p>

<p>My site is made C# asp.net.</p>
