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

[v3] rename tailwind prefix nx- to _ to reduce bundle size #2307

Merged
merged 27 commits into from
Sep 21, 2023
Merged

Conversation

dimaMachina
Copy link
Collaborator

No description provided.

@dimaMachina dimaMachina added this to the 3.0 milestone Sep 18, 2023
@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2023

🦋 Changeset detected

Latest commit: 824f501

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

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

@vercel
Copy link

vercel bot commented Sep 18, 2023

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

Name Status Preview Comments Updated (UTC)
nextra 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 21, 2023 5:44am
nextra-theme-docs-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 21, 2023 5:44am
nextra-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 21, 2023 5:44am

@github-actions
Copy link
Contributor

github-actions bot commented Sep 18, 2023

📦 Next.js Bundle Analysis for swr-site

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 148.76 KB (🟢 -667 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Eighty-nine Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/en 16 KB 164.77 KB 47.08% (+/- <0.01%)
/en/about/a-page 8.14 KB 156.91 KB 44.83% (🟡 +0.01%)
/en/about/acknowledgement 8.14 KB 156.9 KB 44.83% (🟡 +0.01%)
/en/about/changelog 8.79 KB 157.56 KB 45.02% (🟡 +0.01%)
/en/about/team 8.19 KB 156.95 KB 44.84% (🟡 +0.01%)
/en/blog 8.88 KB 157.65 KB 45.04% (🟡 +0.01%)
/en/blog/swr-v1 13.7 KB 162.46 KB 46.42% (🟡 +0.01%)
/en/docs/404-500 9.02 KB 157.79 KB 45.08% (🟡 +0.01%)
/en/docs/advanced 8.51 KB 157.28 KB 44.94% (🟡 +0.01%)
/en/docs/advanced/cache 21.04 KB 169.8 KB 48.52% (🟡 +0.01%)
/en/docs/advanced/code-highlighting 9 KB 157.77 KB 45.08% (🟡 +0.01%)
/en/docs/advanced/dynamic-markdown-import 9.76 KB 158.53 KB 45.29% (🟡 +0.01%)
/en/docs/advanced/file-name.with.DOTS 8.17 KB 156.94 KB 44.84% (🟡 +0.01%)
/en/docs/advanced/images 8.5 KB 157.26 KB 44.93% (🟡 +0.01%)
/en/docs/advanced/markdown-import 16.32 KB 165.08 KB 47.17% (+/- <0.01%)
/en/docs/advanced/more/loooooooooooooooooooong-title 8.25 KB 157.01 KB 44.86% (🟡 +0.01%)
/en/docs/advanced/more/tree/one 8.19 KB 156.95 KB 44.84% (🟡 +0.01%)
/en/docs/advanced/more/tree/three 8.15 KB 156.91 KB 44.83% (🟡 +0.01%)
/en/docs/advanced/more/tree/two 8.17 KB 156.94 KB 44.84% (🟡 +0.01%)
/en/docs/advanced/performance 10.55 KB 159.31 KB 45.52% (🟡 +0.01%)
/en/docs/advanced/react-native 10.59 KB 159.36 KB 45.53% (🟡 +0.01%)
/en/docs/advanced/scrollbar-x 12.8 KB 161.56 KB 46.16% (🟡 +0.01%)
/en/docs/arguments 9.95 KB 158.71 KB 45.35% (🟡 +0.01%)
/en/docs/callout 8.78 KB 157.55 KB 45.01% (🟡 +0.01%)
/en/docs/change-log 8.47 KB 157.23 KB 44.92% (🟡 +0.01%)
/en/docs/code-block-without-language 8.28 KB 157.04 KB 44.87% (🟡 +0.01%)
/en/docs/conditional-fetching 9.16 KB 157.92 KB 45.12% (🟡 +0.01%)
/en/docs/custom-header-ids 8.64 KB 157.41 KB 44.97% (🟡 +0.01%)
/en/docs/data-fetching 10.04 KB 158.8 KB 45.37% (🟡 +0.01%)
/en/docs/error-handling 10.89 KB 159.65 KB 45.61% (🟡 +0.01%)
/en/docs/getting-started 16.96 KB 165.73 KB 47.35% (🟡 +0.01%)
/en/docs/global-configuration 9.48 KB 158.24 KB 45.21% (🟡 +0.01%)
/en/docs/middleware 11.88 KB 160.64 KB 45.90% (🟡 +0.01%)
/en/docs/mutation 10.96 KB 159.73 KB 45.64% (🟡 +0.01%)
/en/docs/options 10.45 KB 159.22 KB 45.49% (🟡 +0.01%)
/en/docs/pagination 21.01 KB 169.77 KB 48.51% (🟡 +0.01%)
/en/docs/prefetching 9.65 KB 158.41 KB 45.26% (🟡 +0.01%)
/en/docs/raw-layout 8.84 KB 157.61 KB 45.03% (🟡 +0.01%)
/en/docs/revalidation 15.19 KB 163.95 KB 46.84% (🟡 +0.01%)
/en/docs/suspense 10.13 KB 158.9 KB 45.40% (🟡 +0.01%)
/en/docs/typescript 9.98 KB 158.74 KB 45.35% (🟡 +0.01%)
/en/docs/understanding 16.33 KB 165.1 KB 47.17% (🟡 +0.01%)
/en/docs/with-nextjs 10.31 KB 159.08 KB 45.45% (🟡 +0.01%)
/en/docs/wrap-toc-items 8.99 KB 157.75 KB 45.07% (🟡 +0.01%)
/en/examples/auth 8.43 KB 157.19 KB 44.91% (🟡 +0.01%)
/en/examples/basic 8.43 KB 157.19 KB 44.91% (🟡 +0.01%)
/en/examples/error-handling 8.44 KB 157.2 KB 44.91% (🟡 +0.01%)
/en/examples/full 8.42 KB 157.19 KB 44.91% (🟡 +0.01%)
/en/examples/infinite-loading 8.45 KB 157.21 KB 44.92% (🟡 +0.01%)
/en/examples/ssr 8.44 KB 157.21 KB 44.92% (🟡 +0.01%)
/en/foo 12.13 KB 160.89 KB 45.97% (🟡 +0.01%)
/en/remote/graphql-eslint/[[...slug]] 12.14 KB 160.91 KB 45.97% (🟡 +0.01%)
/en/remote/graphql-yoga/[[...slug]] 12.16 KB 160.92 KB 45.98% (🟡 +0.01%)
/en/test 8.36 KB 157.12 KB 44.89% (🟡 +0.01%)
/es 10.52 KB 159.29 KB 45.51% (🟡 +0.08%)
/es/docs/advanced/file-name.with.DOTS 6.58 KB 155.35 KB 44.39% (🟡 +0.09%)
/es/docs/advanced/performance 9.12 KB 157.89 KB 45.11% (🟡 +0.09%)
/es/docs/arguments 8.42 KB 157.18 KB 44.91% (🟡 +0.09%)
/es/docs/change-log 12.33 KB 161.1 KB 46.03% (🟡 +0.08%)
/es/docs/conditional-fetching 7.61 KB 156.38 KB 44.68% (🟡 +0.09%)
/es/docs/data-fetching 8.45 KB 157.21 KB 44.92% (🟡 +0.08%)
/es/docs/error-handling 9.4 KB 158.17 KB 45.19% (🟡 +0.09%)
/es/docs/getting-started 14.3 KB 163.07 KB 46.59% (🟡 +0.09%)
/es/docs/global-configuration 7.93 KB 156.7 KB 44.77% (🟡 +0.09%)
/es/docs/mutation 9.46 KB 158.23 KB 45.21% (🟡 +0.09%)
/es/docs/options 8.94 KB 157.7 KB 45.06% (🟡 +0.08%)
/es/docs/pagination 19.82 KB 168.58 KB 48.17% (🟡 +0.09%)
/es/docs/prefetching 8.1 KB 156.86 KB 44.82% (🟡 +0.08%)
/es/docs/revalidation 13.7 KB 162.46 KB 46.42% (🟡 +0.08%)
/es/docs/suspense 8.58 KB 157.34 KB 44.95% (🟡 +0.09%)
/es/docs/understanding 14.72 KB 163.49 KB 46.71% (🟡 +0.09%)
/es/docs/with-nextjs 8.81 KB 157.57 KB 45.02% (🟡 +0.09%)
/es/docs/wrap-toc-items 7.41 KB 156.18 KB 44.62% (🟡 +0.09%)
/es/examples/auth 6.82 KB 155.59 KB 44.45% (🟡 +0.09%)
/es/examples/basic 6.83 KB 155.6 KB 44.46% (🟡 +0.09%)
/es/examples/error-handling 6.84 KB 155.6 KB 44.46% (🟡 +0.09%)
/es/examples/infinite-loading 6.84 KB 155.61 KB 44.46% (🟡 +0.09%)
/ru 11.12 KB 159.88 KB 45.68% (+/- <0.01%)
/ru/docs/advanced/cache 20.8 KB 169.56 KB 48.45% (+/- <0.01%)
/ru/docs/advanced/react-native 9.7 KB 158.46 KB 45.27% (+/- <0.01%)
/ru/docs/arguments 8.89 KB 157.66 KB 45.04% (+/- <0.01%)
/ru/docs/data-fetching 8.94 KB 157.7 KB 45.06% (+/- <0.01%)
/ru/docs/error-handling 10.15 KB 158.91 KB 45.40% (+/- <0.01%)
/ru/docs/middleware 11.24 KB 160 KB 45.71% (+/- <0.01%)
/ru/docs/options 9.72 KB 158.48 KB 45.28% (+/- <0.01%)
/ru/docs/revalidation 14.46 KB 163.23 KB 46.64% (+/- <0.01%)
/ru/docs/suspense 9.15 KB 157.91 KB 45.12% (+/- <0.01%)
/ru/docs/understanding 15.06 KB 163.82 KB 46.81% (+/- <0.01%)
/ru/docs/with-nextjs 9.4 KB 158.16 KB 45.19% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

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