Skip to content

Our own .min.css files, with SRI hashes

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 11:03
· 1 commit to main since this release
  • Release - croot.min.css, ui.min.css, themes.min.css and icons.min.css are now built by tools/build-min.py with lightningcss (pinned, with source maps) and shipped in the release commit, like .min.js. Up to 0.0.42 jsDelivr minified them on request, so their content could change whenever jsDelivr updated its minifier, and no SRI hash could be published. Same URLs as before.
  • integrity.json - includes the .min.css files. Stylesheets with integrity need crossorigin="anonymous". bump-pins.py says so when a .min.css is missing from an older integrity.json.
  • Smaller - gzip -9 sizes, ours vs jsDelivr's: croot.min.css 2.19 vs 2.39 KB, ui.min.css 3.02 vs 3.24 KB, themes.min.css 1.19 vs 1.38 KB, icons.min.css 1.88 vs 2.46 KB. Computed styles of every element (and ::before, ::after, ::marker) on the nine page patterns are identical to the unminified .css in Chromium, Firefox and WebKit, in light and dark mode and with every theme; only the raw text of custom properties differs (--croot-bg: #fff instead of #ffffff).