Skip to content

Initial load - #735

Merged
AlexanderKaran merged 4 commits into
mainfrom
initial-load
Oct 30, 2026
Merged

AlexanderKaran merged 4 commits into
mainfrom
initial-load

Conversation

@AlexanderKaran

@AlexanderKaran AlexanderKaran commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Ok as this one is using Lighthouse, I think we can add this as it's very interesting:

I decided to use a simple HTML and CSS page rather than reuse one we had. They share the CSS as well, so it's the same. No router links; only external links. I also only run these tests once (no iterations and keeping mean, min, extra) I ran it locally several times and all tests stayed the same apart from one time Next.JS shifted by 1kb. We SSR a page on demand just like the SSR Lighthouse test no static generation. I think doing a static generation one as a comparison would be good though

A rough graph I shoved in after running locally:
Screenshot 2026-10-30 at 1 17 51 pm

Closes #705

Update

Ok so to ensure this test is fair I nuked all other test routes in the app-* package and ran again locally there was some reduction

Framework Original KB Only initial-load KB Reduction
Astro 3.36 3.36 0 KB
Next.js 144.76 144.10 0.66 KB
Nuxt 211.72 205.56 6.16 KB
Pracht 21.95 21.51 0.44 KB
React Router 121.82 120.34 1.48 KB
SolidStart 110.86 63.14 47.72 KB
SvelteKit 39.24 35.73 3.51 KB
TanStack Start 354.82 347.21 7.62 KB

So this raises the question: do we change this test?:

  • Keep the test as is, as a real app has many routes
  • For this test, copy the app-* project, nuke the other routes and run the test
  • Do both and show the difference

Starting to make me wonder what effect this could have on other tests; as you scale routes in the app, it can affect things based on the outcome of this test. However at the end of the day each app- project has the same routes so it is fair

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
framework-tracker c03af8e Commit Preview URL

Branch Preview URL
Oct 30 2026, 05:23 AM

@AlexanderKaran
AlexanderKaran merged commit a39c502 into main Oct 30, 2026
88 checks passed
@AlexanderKaran
AlexanderKaran deleted the initial-load branch October 30, 2026 22:39
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.

Total Bytes on Initial Load

2 participants