Telerik Product and Version
|
Telerik Kendo UI Web, any version (Optional: Kendo UI Dataviz)
Microsoft ASP.NET MVC 5
Microsoft Visual Studio 2013 |
Supported Browsers and Platforms
|
All
|
Components/Widgets used (JS frameworks, etc.)
|
Kendo UI, jQuery, Modernizr
|
PROJECT DESCRIPTION
Using Cache Delivery Network (CDN) for loading Javascript and CSS files is great, but what if the CDN server fails?
Answer: your application breaks down looking ugly...
So the solution it to first try to load from a CDN, then load from the Local Server files if Javascript was not loaded correctly from the CDN (the fallback).
This project shows how to load jQuery/Kendo/Modernizr from a Cache Delivery Network, and fallback to local server files if the CDN were unavailable.
It even tries several CDN for jQuery and Kendo, prefering CDN which are compatible with https.
All this implementation CDN-Fallback for resides in the
Views/Shared/_Layout.cshtml file (in the html/head section)Happy coding!