I want to load jquery from a CDN with a local fallback.
That's pretty straightforward if you look it up in stackoverflow, i found this informative question about the task.
But when I am optimizing the code for production, jQuery gets bundled inside the optimized code, which kind of defeats the purpose of loading jQuery via a public CDN.
What are the solutions for this problem?
One way might be to exclude it from your build. Use the config option exclude
https://github.com/jrburke/r.js/blob/master/build/example.build.js#L352
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With