July 2014 Entries

CdnFallbackExpression for JQuery, JQuery.UI, Modernizr and Bootstrap

So, like a total chump, I didn’t really understand what the CdnFallbackExpression on a Bundle actually meant. It didn’t help that pretty much every example you find online shows you what to write for jQuery, but nothing else. With Tournr, I want to use CDN’s where I can for obvious reasons – and so I dutifully tried the jQuery example: var bundle = new Bundle("~/Scripts/jQuery").... bundle.CdnFallbackExpression = "window.jQuery"; bundle.CdnPath = "https://ajax.aspnetcdn.com... ......