When Microsoft or Google CDN fails, what should u do?


//

Let me tell you one thing, an outage in CDN is very rare. But just in case you don’t want to take a risk, go ahead with this fallback mechanism, as suggested by Scott Guru.
Microsoft CDN outage for jQuery:
<script type=”text/javascript”>
if (typeof jQuery == ‘undefined’)
{
document.write(unescape(“%3Cscript src=’/Scripts/jquery-1.4.2.min.js’ type=’text/javascript’%3E%3C/script%3E”));
}
</script>
Microsoft CDN outage for AJAX:

<script src=”http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.js&#8221; type=”text/javascript”></script>
<script src=”http://ajax.microsoft.com/ajax/mvc/1.0/MicrosoftMvcAjax.js&#8221; type=”text/javascript”></script>
<script type=”text/javascript”>
if (typeof Sys == ‘undefined’)
{
document.write(unescape(“%3Cscript src=’/Scripts/MicrosoftAjax.js’ type=’text/javascript’%3E%3C/script%3E”));
document.write(unescape(“%3Cscript src=’/Scripts/MicrosoftMvcAjax.js’ type=’text/javascript’%3E%3C/script%3E”));
}
</script>
Use it for any CDN’s.
Let your mind be at peace.. 🙂

//

  1. Unknown's avatar

    Apparently this is what the esteemed Willis was talkin’ ’bout.

    Reply

  2. Unknown's avatar

    I read this piece of writing completely about the difference of most recent and
    preceding technologies, it’s awesome article.

    Reply

  3. Unknown's avatar

    Apple now has Rhapsody as an app, which is a great start, but it is currently hpmreaed by the inability to store locally on your iPod, and has a dismal 64kbps bit rate. If this changes, then it will somewhat negate this advantage for the Zune, but the 10 songs per month will still be a big plus in Zune Pass’ favor.

    Reply

Feel free to leave a reply here...