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. Apparently this is what the esteemed Willis was talkin’ ’bout.

    Reply

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

    Reply

  3. 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...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: