Part 100 What if CDN is down04:33

  • 0
Published on January 23, 2018

Link for code samples used in the demo

Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists

In this video we will disccuss
1. What if CDN is down?
2. How to fallback from CDN to use local copy of Jquery?

There are several benefits of referencing a resource from a CDN. We discussed these in Part 99 of asp.net mvc tutorial.

A CDN is an external resource and beyond our control. So, what if, CDN is down? How can we fallback from CDN to use local copy of

Jquery.

The following code checks if jQuery is loaded and if it isn’t, the jquery script will be loaded from our web server. Please make sure to replace [ with LESSTHAN and ] with GREATERTHAN symbol.
[script src=”
type=”text/javascript”]
[/script]

[script type=”text/javascript”]
window.jQuery || document.write(‘[script src=”/MVCDemo/Scripts/jquery-1.7.1.min.js”]x3C/script]’)
[/script]

Tags:, ,

https://cafeadobro.ro/

https://www.stagebox.uk/wp-includes/depo10-bonus10/

https://iavec.com.br/

Enjoyed this video?
"No Thanks. Please Close This Box!"