Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(qwik-city): noSPA (experimental) #6937

Merged
merged 2 commits into from
Oct 6, 2024
Merged

feat(qwik-city): noSPA (experimental) #6937

merged 2 commits into from
Oct 6, 2024

Conversation

wmertens
Copy link
Member

@wmertens wmertens commented Oct 6, 2024

This disables the SPA init, slightly reducing code size and startup speed in MPA-only applications.

This is an experimental feature.

This also refactors the SPA init loading to leverage qwikloader and sync$, reducing HTML size.
by using a string enum we can refer to the items directly and they end up in the API docs. Plus the code is cleaner.
@wmertens wmertens requested review from a team as code owners October 6, 2024 11:21
Copy link

changeset-bot bot commented Oct 6, 2024

🦋 Changeset detected

Latest commit: 60df208

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@builder.io/qwik-city Patch
eslint-plugin-qwik Patch
@builder.io/qwik Patch
create-qwik Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@wmertens wmertens enabled auto-merge (rebase) October 6, 2024 11:21
Copy link

pkg-pr-new bot commented Oct 6, 2024

Open in Stackblitz

npm i https://pkg.pr.new/@builder.io/qwik@6937
npm i https://pkg.pr.new/@builder.io/qwik-city@6937
npm i https://pkg.pr.new/eslint-plugin-qwik@6937
npm i https://pkg.pr.new/create-qwik@6937

commit: 60df208

Copy link
Contributor

github-actions bot commented Oct 6, 2024

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview 60df208

Copy link
Member

@thejackshelton thejackshelton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is inspired by #6933. Confirmed that this code is not present in the source when noSPA is enabled, and the SPA shim code is minified.

Tried this in a production app and didn't run into any problems. LGTM for experimental use 👍

@wmertens wmertens merged commit 37962aa into main Oct 6, 2024
21 checks passed
@wmertens wmertens deleted the noSPA branch October 6, 2024 15:17
@github-actions github-actions bot mentioned this pull request Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants