0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/packages/start-server-core/tests
Max Katz 18154b1c45
perf: lower manifest script preload priority (#8212)
* perf: lower manifest script preload priority

* fix(start-server-core): forward fetchPriority into static Early Hints

Static script hints were built from getScriptPreloadAttrs but copied only
href, rel, as and crossOrigin, so Chromium started hinted preloads at
MEDIUM before the HTML's fetchPriority="low" arrived. Build them with the
shared addEarlyHintFetchAttrs helper, which the dynamic hint path already
uses, so fetchPriority (and crossOrigin) are carried into 103 hints and the
response Link header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: cover low-priority manifest preloads in Solid and Vue

Add a Solid server-suite SSR test for module and IIFE preloads and assert
fetchpriority="low" on rendered preloads in the Solid and Vue HeadContent
tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: note low-priority JavaScript Early Hints

Mention that JavaScript Early Hints carry fetchpriority=low and extend the
changeset to start-server-core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-10-16 15:35:33 +02:00
..
fixtures fix: fix streaming (#7497) 2026-05-29 02:27:23 +02:00
createCsrfMiddleware.test.ts response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
createStartHandler.test.ts perf: skip unused Start request setup (#8451) 2026-10-13 01:33:36 +02:00
early-hints.test.ts perf: lower manifest script preload priority (#8212) 2026-10-16 15:35:33 +02:00
error-entry-isolation.test.ts response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
external-sessions.test.ts response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
finalManifest.test.ts response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
frame-protocol.test.ts optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
header-contracts.test-d.ts response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
header-contracts.test.ts response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
redirect-protocol-reconciliation.test.ts response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
request-response.test.ts response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
response-reconciliation.bench.md chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
response-reconciliation.bench.ts chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
server-functions-handler.test.ts response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
server-functions-reconciliation.test.ts refactor(start)!: remove the deprecated inputValidator (#8694) 2026-10-13 00:32:10 +02:00
serverRoute.test-d.ts refactor(router-core): deprecate json function in favor of standard Response.json function (#6181) 2025-12-22 19:44:04 +01:00
transformAssets.test.ts fix(start): emit boot-sibling chunks as scripts for IIFE entries (#7501) 2026-05-29 01:42:05 +02:00