github gildas-lormeau/single-file-cli v2.19.0

4 hours ago

SingleFile CLI 2.19.0

New features

  • New option --max-parallel-requests-per-host (default 6, 0 removes the limit): the number of resources fetched at the same time from one host, what browsers allow over HTTP/1.1. Over HTTP/2 and HTTP/3 every resource of a page left at once, and a site behind a rate limiter answered 429 to part of them.

CLI fixes and improvements

  • Update single-file-core to 1.6.39:
    • A @font-face rule whose src list holds an item that fails to parse no longer loses its font. Browsers parse the list item by item and skip only the broken one, so a comma typed where a semicolon belonged (src: url(a.woff) format("woff"), font-display: swap;) still loads the font on the live page while the saved page kept a URL that pointed nowhere. The valid sources are now kept and embedded.
    • The "remove unused fonts" option no longer removes a font the page draws only through a list marker (the numbers of an ordered list, a ::marker icon) or a text-transform (É drawn from an é): the characters a marker and a transform draw are now reported as drawn.
    • A resource answered with a server error (status 500 or more) is requested once more without the cache, so an error served during a short outage no longer comes back in every capture for as long as the cache entry lives.
    • "Remove unused styles" also removes the custom properties nothing reads, such as an icon set declared as --icon: url() properties under :root whose rules were removed: on linkedin.com this saves 1.25 MB and 272 inline SVGs with no computed style changed.
    • An image still loading when the page is saved is kept instead of being dropped as hidden because its box measured 0 × 0.

Co-authored by Claude (Claude Code)

Don't miss a new single-file-cli release

NewReleases is sending notifications on new releases.