4 ms·
Since Script tags are blocking, you can do a undefined check then if that fails, inject a new script tag either local or a secondary CDN. Link for reference. .
by jabart 6y ago
Since Script tags are blocking, you can do a undefined check then if that fails, inject a new script tag either local or a secondary CDN.
Link for reference. .Net Core has this built in as a tag helper too! https://www.hanselman.com/blog/cdns-fail-but-your-scripts-dont-have-to-fallback-from-cdn-to-local-jquery https://www.hanselman.com/blog/cdns-fail-but-your-scripts-do...
- adrianmonk 6y agoThanks. So it seems like it's not really that bad. Particularly if you are already using some loader tools (and don't have to add them to your build just to get this).