Kind of self-explanatory question: Why is it recommended loading jQuery or any other library from a CDN?
The user can access the file from computer server nearest to its location and it makes overall access to web pages easy and faster.
1: jQuery CDN is Simple to Use The jQuery CDN is popular among web developers because it is simple to use and understand. Because the jQuery download file employs open coding standards and simple syntax, developers do not have to spend much time implementing it on their site or application.
jQuery is the most popular library on the web today. It's a library of JavaScript functions that make it easy for webpage developers to do common tasks-- like manipulating the webpage, responding to user events, getting data from their servers, building effects and animations, and much more.
Using CDN is preferred as it improves the site performance. Yes, users accessing a site from behind strict firewall rules can face issues to access CDN urls. In that case you can download jQuery. I would advise using bower to install it so you can upgrade / maintain jQuery easily.
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