withastro
astro
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
chore: add changeset for SVG content collection deadlock fix Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0xRozier:fix/issue-15575-tla-svg-content-collection-deadlock
6 hours ago
fix: preserve inline styles and font preloads during ClientRouter head swap (#15514) * fix: preserve inline styles and font preloads during ClientRouter head swap During client-side navigation with ClientRouter, swapHeadElements() only preserved elements with data-astro-transition-persist and stylesheet links. Inline <style> tags (including @font-face declarations from <Font>) were removed and re-appended on every navigation, forcing the browser to re-evaluate them and triggering a visible font flash (FOUT). This extends persistedHeadElement() to also match: - Inline <style> elements by their text content - Font preload links (link[rel=preload][as=font]) by href When an identical element exists in both the old and new document head, it stays in the DOM instead of being removed and re-inserted. Fixes #15465 * add changeset * Add e2e test for inline style and font preload persistence Add a test that verifies inline <style> elements (e.g. @font-face declarations) and font preload links survive head swaps during client-side navigation, preventing FOUT (Flash of Unstyled Text). The test navigates between two pages sharing identical inline styles and font preloads, and asserts that the original DOM nodes persist rather than being removed and re-inserted. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: resolve lint errors and flaky e2e test for font persistence Remove unused variables (styleIdBefore, preloadIdBefore) to fix biome lint errors. Replace fragile exact style count comparison with greaterThan(0) checks, since Astro may inject additional style elements during client-side navigation. Use data-attribute selectors to directly query the marked DOM nodes instead of relying on querySelector order. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Make the test a bit more concise * Update fix-font-head-swap.md --------- Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
main
6 hours ago
Merge branch 'main' into fix/issue-15465-font-head-swap
veeceey:fix/issue-15465-font-head-swap
8 hours ago
chore: add changeset for rendering perf optimizations
bench/rendering-perf
21 hours ago
perf: rendering optimizations (A+B+C+E+F, no WeakMap cache)
bench/rendering-perf
21 hours ago
perf: WeakMap HTMLString cache for template parts [bisect D only]
bench/rendering-perf
22 hours ago
perf: isHTMLString instanceof + WeakMap cache + head dedup O(N) [bisect round 1]
bench/rendering-perf
22 hours ago
ishtml string
bench/rendering-perf
23 hours ago
Active Branches
fix(assets): prevent circular dependency deadlock with SVG in content collections
last run
6 hours ago
#15603
CodSpeed Performance Gauge
0%
perf: SSR rendering optimizations
last run
21 hours ago
#15605
CodSpeed Performance Gauge
+74%
Port Go's csrf protection
last run
1 day ago
#15595
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs