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] Add <Playground /> component #3174

Merged
merged 28 commits into from
Aug 31, 2024
Merged

[v3] Add <Playground /> component #3174

merged 28 commits into from
Aug 31, 2024

Conversation

dimaMachina
Copy link
Collaborator

fixes #2543 #1167

superseded #3146

Copy link

changeset-bot bot commented Aug 31, 2024

🦋 Changeset detected

Latest commit: 97062b8

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

Copy link

vercel bot commented Aug 31, 2024

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

Name Status Preview Comments Updated (UTC)
nextra-theme-docs-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 31, 2024 4:18pm
nextra-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 31, 2024 4:18pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
nextra ⬜️ Ignored (Inspect) Visit Preview Aug 31, 2024 4:18pm

Copy link
Contributor

github-actions bot commented Aug 31, 2024

📦 Next.js Bundle Analysis for swr-site

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

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 152.57 KB (🟡 +25 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!

Copy link
Contributor

github-actions bot commented Aug 31, 2024

📦 Next.js Bundle Analysis for docs

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

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 159.27 KB (🟢 3.85 KB)
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!

New Page Added

The following page was added to the bundle from the code in this PR:

Page Size (compressed) First Load
/docs/guide/advanced/playground 12.27 KB 171.54 KB

Forty-eight Pages Changed Size

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

Page Size (compressed) First Load
/ 51.25 KB (🟢 73 B) 210.53 KB
/404 6.14 KB (🟢 57 B) 165.42 KB
/_error 183 B (🟢 1 B) 159.45 KB
/_meta 246 B (🟢 2 B) 159.51 KB
/about 7.98 KB (🟢 64 B) 167.26 KB
/docs 8.35 KB (🟢 63 B) 167.63 KB
/docs/_meta 249 B (🟢 1 B) 159.52 KB
/docs/blog-theme 11.95 KB (🟢 68 B) 171.23 KB
/docs/blog-theme/_meta 259 B (🟢 2 B) 159.53 KB
/docs/blog-theme/start 12.62 KB (🟢 82 B) 171.89 KB
/docs/custom-theme 10.11 KB (🟢 67 B) 169.38 KB
/docs/docs-theme 11.23 KB (🟢 64 B) 170.51 KB
/docs/docs-theme/api/_meta 259 B (🟢 2 B) 159.53 KB
/docs/docs-theme/api/use-config 7.84 KB (🟢 66 B) 167.11 KB
/docs/docs-theme/built-ins 11.25 KB (🟢 62 B) 170.53 KB
/docs/docs-theme/built-ins/bleed 7.4 KB (🟢 -345 B) 166.67 KB
/docs/docs-theme/page-configuration 12.27 KB (🟢 73 B) 171.55 KB
/docs/docs-theme/start 18 KB (🟢 86 B) 177.27 KB
/docs/docs-theme/theme-configuration 16.06 KB (🟢 70 B) 175.34 KB
/docs/guide 11.4 KB (🟢 60 B) 170.67 KB
/docs/guide/_meta 255 B (🟢 2 B) 159.52 KB
/docs/guide/advanced 11.24 KB (🟢 63 B) 170.51 KB
/docs/guide/advanced/_meta 260 B (🟢 1 B) 159.53 KB
/docs/guide/advanced/latex 13.7 KB (🟢 77 B) 172.98 KB
/docs/guide/advanced/mermaid 7.43 KB (🟢 276 B) 166.71 KB
/docs/guide/advanced/npm2yarn 10.52 KB (🟢 78 B) 169.79 KB
/docs/guide/advanced/remote 6.9 KB (🟢 65 B) 166.17 KB
/docs/guide/advanced/table 13.78 KB (🟢 85 B) 173.05 KB
/docs/guide/advanced/tailwind-css 6.87 KB (🟢 61 B) 166.14 KB
/docs/guide/advanced/typescript 6.9 KB (🟢 66 B) 166.18 KB
/docs/guide/built-ins 11.31 KB (🟢 62 B) 170.59 KB
/docs/guide/built-ins/_meta 263 B (🟢 3 B) 159.53 KB
/docs/guide/built-ins/callout 8.09 KB (🟢 66 B) 167.36 KB
/docs/guide/built-ins/cards 11.27 KB (🟢 72 B) 170.54 KB
/docs/guide/built-ins/filetree 7.83 KB (🟢 64 B) 167.11 KB
/docs/guide/built-ins/steps 6.96 KB (🟢 62 B) 166.24 KB
/docs/guide/built-ins/tabs 10.71 KB (🟢 75 B) 169.98 KB
/docs/guide/custom-css 7.03 KB (🟢 62 B) 166.3 KB
/docs/guide/i18n 8.17 KB (🟢 67 B) 167.44 KB
/docs/guide/image 8.25 KB (🟢 67 B) 167.53 KB
/docs/guide/link 6.76 KB (🟢 -43 B) 166.03 KB
/docs/guide/markdown 13.39 KB (🟢 69 B) 172.67 KB
/docs/guide/organize-files 13.87 KB (🟢 63 B) 173.15 KB
/docs/guide/search 6.65 KB (🟢 62 B) 165.92 KB
/docs/guide/ssg 7.39 KB (🟢 58 B) 166.67 KB
/docs/guide/syntax-highlighting 11.44 KB (🟢 70 B) 170.72 KB
/docs/guide/twoslash-support 9.18 KB (🟢 63 B) 168.45 KB
/showcase 13.17 KB (🟢 69 B) 172.44 KB
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

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by undefined% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@dimaMachina dimaMachina mentioned this pull request Aug 31, 2024
2 tasks
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.

2 participants