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>

Download jskjs.min.js

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>

Download jskjs.js

All URLs

URLCachingUse for
/cdn/1.0.0/jskjs.min.js1 year, immutableProduction (with SRI)
/cdn/1.0.0/jskjs.js1 year, immutableDebugging (with SRI)
/cdn/jskjs.min.js1 hourAlways-latest experiments — no SRI, may change
/cdn/jskjs.js1 hourAlways-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.