jQuery 3.7.1 · LilScript port · @itslil/jquery
jQuery,
compiled.
The jquery@3.7.1 public API, rewritten in LilScript and shipped as a dependency-free drop-in. The published ESM is the compiler-selected compact module. Official jquery.min.js is still smaller on Brotli. Throughput is measured against the same official package.
npm install @itslil/jquery
Canonical size is lilscript-codec gzip-9 / Brotli-11. The published artifact is the compiler-selected ESM, not a downstream Terser pick. Throughput is candidate / official, same Node process isolation.
Measured vs jquery@3.7.1
Throughput,
not inferred.
Same DOM fixture and checksums against official jquery@3.7.1. Isolated Node processes, --expose-gc, 8 samples, first 2 discarded, median of the rest. Ratio is @itslil/jquery / official (lower is faster).
| Suite | jquery@3.7.1 | @itslil/jquery | Ratio |
|---|
The compiled runtime, in the browser
Six small
apps.
These load the same production ESM that npm publishes. Selectors, events, effects, and Deferred.
Vite production bundles
Same apps,
both libraries.
Each example is bundled twice with Vite minify: once with official jquery@3.7.1, once with @itslil/jquery. Bytes are the emitted JS chunk, scored with the same codec.
| App | jquery Brotli | @itslil/jquery Brotli | Ratio |
|---|
The receipts
Raw, gzip,
and Brotli.
Reusable package artifacts, not a closed-world app. Official lanes are the published jquery.js and jquery.min.js. @itslil/jquery is the LilScript compiler-selected ESM.
| Lane | Raw | gzip-9 | Brotli-11 | vs official min |
|---|
Why official min still wins. jQuery is a public-name, string-key, host-heavy library. The current port keeps that ABI, so LilScript cannot mangle the names a page already calls. The compiler-selected artifact is the published one. Downstream Terser of that artifact is a diagnostic only and is not what npm installs.
README ↗Zero runtime dependencies
Install the
current port.
npm install @itslil/jquery