Skip to content

perf(build): reduce preload helper allocations and size - #23717

Open
schiller-manuel wants to merge 1 commit into
vitejs:mainfrom
schiller-manuel:perf/preload-helper-size
Open

schiller-manuel wants to merge 1 commit into
vitejs:mainfrom
schiller-manuel:perf/preload-helper-size

Conversation

@schiller-manuel

Copy link
Copy Markdown
Contributor

Inline preload cache handling and resolve CSS load errors as results, allowing Promise.all to wait for every stylesheet without extra callbacks or settlement wrappers. Preserve pending-load sharing and vite:preloadError behavior.

With Vite 8.3.4/Rolldown 1.2.13, TanStack's React minimal bundle shrinks by 97 bytes gzip. All 15 Vite benchmark scenarios shrink by 60–101 bytes gzip.

Validation: 1,042 unit tests and 254 browser tests pass, plus build, typecheck, lint, and formatting. Added coverage for concurrency, error ordering/cancellation, SSR links, and module rejection payloads.

AI-assisted; checked against the original helper with behavior tests and emitted-bundle comparisons. CSS retry behavior proposed in #23710 is separate.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant