Skip to content
freetier.wiki

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
  1. Visit https://cdnjs.com/ and search for the desired library.
  2. Select the version you need from the list.
  3. Copy the provided CDN URL for the JS or CSS file.
  4. Paste the URL into your HTML file's <script> or <link> tag.
  5. Deploy your site; the asset will load from the CDN automatically.

Other free hosting options

Google Cloud · Hosting
All fonts are open source and without cost · Commercial use is allowed
Billing risk: None
No card
Vercel · Hosting
1 team seat (Hobby plan) · Unlimited deployments · 100 GB Fast Data Transfer/month included
Billing risk: None
No card
Cloudflare · Hosting
500 builds/month · 100 projects per account · 20,000 files per site
Billing risk: None
No card
Google Cloud · Hosting
10 GB storage · 360 MB/day data transfer (~10 GB/month) · SSL included
Billing risk: None
No card