In MVC we can specify a cdn fallback expression using Bundle.CdnFallbackExpression so that our site will use local versions of js or css in case the cdn is down. The expression for jquery, for example, is "window.jQuery". What I'd like to know is how do I go about writing these expressions for any given javascript library? I found a list of expressions for popular js libraries but I don't fully understand how these expressions were created.
I'm dealing with a project that has a lot of js libraries that are not on this list and I'm not sure how to go about writing expressions for all of them.
Am I looking for objects that the library creates? Can we use function names to see if the library loaded correctly?