In this post, I show how to use the Link Tag Helper and Script Tag Helper in Razor with the asp-fallback attribute to serve files from a Content Delivery Network (CDN), falling back to local scripts if the CDN is unavailable.

Using a CDN with a fallback was the default approach in the ASP.NET Core templates for .NET Core 2.x, but in 3.x the templates were significantly simplified and now only serve from local files. core #front end #razor #razor pages

Using jQuery and Bootstrap from a CDN with fallback scripts in ASP.NET Core 3.0
3.15 GEEK