CDN
CDN & downloads
Pinned, immutable URLs with integrity hashes. Served with CORS and long-lived caching, so any site can use them safely.
Production (minified) — recommended
21.6 KB · 8.1 KB gzipped · cached for a year (immutable)
HTML
<script src="https://jskjs.org/cdn/1.0.0/jskjs.min.js"
integrity="sha384-RAPdwGto8HbdNSv2+1QToJzAy19GmU5390hxU7QTE6/o62UBBrC81ZqKcf3IOMWW"
crossorigin="anonymous"></script>Development (readable source)
42.6 KB, fully commented — the best way to read how jsKjs works
HTML
<script src="https://jskjs.org/cdn/1.0.0/jskjs.js"
integrity="sha384-JnvvF0tJUn1KnzSqg8kNjoy7Vdw1aBQqdBJf5B0dDt/aJ06jqTv9RtorlpES8617"
crossorigin="anonymous"></script>All URLs
| URL | Caching | Use for |
|---|---|---|
/cdn/1.0.0/jskjs.min.js | 1 year, immutable | Production (with SRI) |
/cdn/1.0.0/jskjs.js | 1 year, immutable | Debugging (with SRI) |
/cdn/jskjs.min.js | 1 hour | Always-latest experiments — no SRI, may change |
/cdn/jskjs.js | 1 hour | Always-latest source |
Why pin?An integrity hash only matches one exact file. The versioned URLs never change, so the hash stays valid and browsers can cache them for a year. The “latest” URLs will change with each release — never combine them with
integrity.Self-hosting
Copy jskjs.min.js next to your pages and reference it with a relative path. It has no dependencies and needs no build step. If you serve it cross-origin with SRI, send Access-Control-Allow-Origin: *. The source is also on GitHub.