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

POC: pages router performance #2404

Draft
wants to merge 62 commits into
base: main
Choose a base branch
from
Draft

POC: pages router performance #2404

wants to merge 62 commits into from

Conversation

eduardoformiga
Copy link
Member

@eduardoformiga eduardoformiga commented Aug 12, 2024

What's the purpose of this pull request?

This PR aims to :

When we sum the page + shared js, we gain a lot of first JS load on our pages.

e.g.
Homepage First load JS gain: 36kb (homepage) + 35kb (shared) = 71kb.
Before: 240kb.
After 169kb.
~30% of gain in homepage

BEFORE AFTER
Page sizes and First load JS Screenshot 2024-08-12 at 12 39 31 Screenshot 2024-08-12 at 12 34 46
PSI

How it works?

How to test it?

Starters Deploy Preview

References

Copy link

vercel bot commented Aug 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
faststore-site ⬜️ Ignored (Inspect) Visit Preview Aug 22, 2024 11:04pm

Copy link

codesandbox-ci bot commented Aug 12, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@eduardoformiga eduardoformiga changed the title feat: adds preact feat: pages router performance Aug 12, 2024
## What's the purpose of this pull request?

<!--- Considering the context, what is the problem we'll solve? Where in
VTEX's big picture our issue fits in? Write a tweet about the context
and the problem itself. --->

## How it works?

<!--- Tell us the role of the new feature, or component, in its context.
--->

## How to test it?

<!--- Describe the steps with bullet points. Is there any external link
that can be used to better test it or an example? --->

### Starters Deploy Preview

<!--- Add a link to a deploy preview from `gatsby.store` AND
`nextjs.store` with this branch being used. --->

<!--- Tip: You can get an installable version of this branch from the
CodeSandbox generated when this PR is created. --->

## References

<!--- Spread the knowledge: is there any content you used to create this
PR that is worth sharing? --->

<!--- Extra tip: adding references to related issues or mentioning
people important to this PR may be good for the documentation and
reviewing process --->
@eduardoformiga eduardoformiga changed the title feat: pages router performance POC: pages router performance Aug 21, 2024
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