Skip to content

v2.6.0

Choose a tag to compare

@github-actions github-actions released this 24 Sep 11:56
· 36 commits to master since this release
de2963f

Features

  • Name the CSS and JavaScript after their content (css/site-2fddbd0b.css), and rewrite the templates that reference them. A changed file is now a different URL, so a site can cache /_/ for a long time as immutable without readers keeping an old UI after an update. Nothing outside the bundle references these files by name. By @arska in #192 (see #193 for the site-side caching)

Fixes

  • Start Pagefind only once the page has finished loading. Its search worker needs the main thread for its handshake, which is busy during page load, so the handshake timed out and the search fell back to the main thread: 5.8 seconds for the first search on a real site. By @arska in #191

Build and tooling

  • Generate the preview pages from the staged UI instead of the sources, so the preview renders with what ships, and wait for those pages to be written before indexing them. The page build reported itself finished while still writing, so the search index was built from a half-written site. By @arska in #192

Full Changelog: v2.5.2...v2.6.0