Conditionally loading jQuery 2.x
HTML Conditional Comments#
yepnope#
RequireJS#
This will depend on your RequireJS structure, but one way to do this is at the path configuration for jQuery in requirejs.config.
Here is an example RequireJS project with this setup, including the local file fallback.
Another way to do conditional loading with RequireJS is using a loader plugin in conjunction with the map configuration option https://github.com/jrburke/requirejs/issues/451 , though I ran into difficulties getting this setup to work properly.
Read other posts