cdnjs
cdnjs is a free, public CDN for hosting popular JavaScript and CSS libraries with fast global delivery. · Cloudflare · Hosting
Overview
cdnjs is a free, public CDN maintained by Cloudflare for hosting and delivering popular open-source JavaScript and CSS libraries. It is ideal for quickly including widely-used libraries in web projects, reducing server bandwidth, and improving load times with minimal setup. However, it does not support private or custom files, nor does it offer custom domains or SLAs, making it best suited for open-source and non-critical production use.
Good fit
Use cdnjs to quickly add popular open-source JS or CSS libraries to your website without hosting them yourself.
- static sites
- prototyping
- open-source projects
- student projects
Not a fit
Avoid cdnjs if you need to host private, proprietary, or custom files, or require custom domain support.
- hosting private assets
- requiring custom domains
- needing SLAs
Quickstart · 5 steps
- Visit https://cdnjs.com/ and search for the desired library.
- Select the version you need from the list.
- Copy the provided CDN URL for the JS or CSS file.
- Paste the URL into your HTML file's <script> or <link> tag.
- Deploy your site; the asset will load from the CDN automatically.