The most newbie-friendly way to add a library to a project is to:. Search for the library. Look for the source file. Copy the source file. Paste what you copied into the project.
This works, but it’s a painful process. It’s easier if you use CDNs like JSDelivr.
- CDN stands for content delivery network.
- Its main purpose is to let users download files faster. Read this article by Fastly if you’re wondering whether you should use a CDN.
- CDNS let users download files faster by placing datacenters all over the world.
When the browser sees a CDN link, they’ll serve up the library from the datacenter closest to the user. This is how CDNs work. JSDelivr is a special kind of CDN.