What if they fail?
“Our CDNs are 99.9% uptime guarantee” You would have run into similar statements a number of times with cloud hosting providers. But what if your customer were just unlucky that day(it happens)? Don’t you want to silently fallback to your local servers when that happens? Fortunately there’s a simple trick.
<script>window.jQuery || document.write('<script src="../common/jquery-1.8.3.min.js"><\/script>')</script>
Add the above piece of code to your web page, change the CDN URL, update the local path of jQuery, and see the magic happen.
This post has been inspired by HTML5Boilerplate’s implementation of effectively falling back when the jQuery load from a CDN fails.
Don’t forget to check out Infragistics Content Delivery network for Ignite UI
Have a feedback? Find me on twitter @nishanil