When using a CDN, you should have a fallback mechanism in case the CDN request fails. In the code above, jQuery will be requested from the CDN while in release mode and the debug version of jQuery will be fetched locally in debug mode. bundles.Add(new ScriptBundle("~/bundles/jquery").Include(īundles.UseCdn = true //enable CDN supportīundles.Add(new ScriptBundle("~/bundles/jquery", public static void RegisterBundles(BundleCollection bundles) The follow code replaces the local jQuery bundle with a CDN jQuery bundle.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |