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

use svg loader in docs website #2035

Merged
merged 21 commits into from Jul 8, 2023
Merged

use svg loader in docs website #2035

merged 21 commits into from Jul 8, 2023

Conversation

dimaMachina
Copy link
Collaborator

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jul 5, 2023

⚠️ No Changeset found

Latest commit: 1ca47e0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link

vercel bot commented Jul 5, 2023

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 Jul 8, 2023 10:23am
nextra-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2023 10:23am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nextra ⬜️ Ignored (Inspect) Visit Preview Jul 8, 2023 10:23am

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

📦 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 182.83 KB (🟡 +522 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!

One Hundred Six 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)
/404 4.23 KB 187.06 KB 53.44% (🟡 +0.01%)
/500 4.22 KB 187.04 KB 53.44% (+/- <0.01%)
/_error 185 B 183.01 KB 52.29% (+/- <0.01%)
/about/a-page.en-US 4.19 KB 187.01 KB 53.43% (+/- <0.01%)
/about/acknowledgement.en-US 4.18 KB 187.01 KB 53.43% (+/- <0.01%)
/about/changelog.en-US 4.85 KB 187.67 KB 53.62% (+/- <0.01%)
/about/team.en-US 4.23 KB 187.05 KB 53.44% (🟡 +0.01%)
/blog.en-US 4.8 KB 187.62 KB 53.61% (+/- <0.01%)
/blog/swr-v1.en-US 9.79 KB 192.61 KB 55.03% (+/- <0.01%)
/blog/swr-v1.ru 11.47 KB 194.3 KB 55.51% (+/- <0.01%)
/docs/404-500.en-US 5.06 KB 187.89 KB 53.68% (+/- <0.01%)
/docs/advanced.en-US 4.55 KB 187.38 KB 53.54% (+/- <0.01%)
/docs/advanced/cache.en-US 16.4 KB 199.22 KB 56.92% (+/- <0.01%)
/docs/advanced/cache.ru 17.64 KB 200.47 KB 57.28% (+/- <0.01%)
/docs/advanced/code-highlighting.en-US 5.01 KB 187.84 KB 53.67% (+/- <0.01%)
/docs/advanced/dynamic-markdown-import.en-US 5.79 KB 188.62 KB 53.89% (+/- <0.01%)
/docs/advanced/file-name.with.DOTS.en-US 4.23 KB 187.05 KB 53.44% (+/- <0.01%)
/docs/advanced/file-name.with.DOTS.es-ES 4.24 KB 187.07 KB 53.45% (+/- <0.01%)
/docs/advanced/file-name.with.DOTS.ru 4.29 KB 187.12 KB 53.46% (+/- <0.01%)
/docs/advanced/images.en-US 4.47 KB 187.3 KB 53.51% (🟡 +0.01%)
/docs/advanced/markdown-import.en-US 8.37 KB 191.19 KB 54.63% (+/- <0.01%)
/docs/advanced/more/loooooooooooooooooooong-title.en-US 4.28 KB 187.1 KB 53.46% (+/- <0.01%)
/docs/advanced/more/tree/one.en-US 4.24 KB 187.06 KB 53.45% (+/- <0.01%)
/docs/advanced/more/tree/three.en-US 4.18 KB 187.01 KB 53.43% (+/- <0.01%)
/docs/advanced/more/tree/two.en-US 4.24 KB 187.06 KB 53.45% (+/- <0.01%)
/docs/advanced/performance.en-US 6.55 KB 189.38 KB 54.11% (+/- <0.01%)
/docs/advanced/performance.es-ES 6.73 KB 189.55 KB 54.16% (+/- <0.01%)
/docs/advanced/performance.ru 7.35 KB 190.18 KB 54.34% (+/- <0.01%)
/docs/advanced/react-native.en-US 6.11 KB 188.94 KB 53.98% (+/- <0.01%)
/docs/advanced/react-native.ru 6.67 KB 189.5 KB 54.14% (+/- <0.01%)
/docs/advanced/scrollbar-x.en-US 5.19 KB 188.02 KB 53.72% (+/- <0.01%)
/docs/arguments.en-US 5.33 KB 188.16 KB 53.76% (+/- <0.01%)
/docs/arguments.es-ES 5.4 KB 188.22 KB 53.78% (+/- <0.01%)
/docs/arguments.ru 5.66 KB 188.48 KB 53.85% (+/- <0.01%)
/docs/callout.en-US 4.35 KB 187.17 KB 53.48% (+/- <0.01%)
/docs/change-log.en-US 4.55 KB 187.37 KB 53.54% (+/- <0.01%)
/docs/change-log.es-ES 9.99 KB 192.82 KB 55.09% (+/- <0.01%)
/docs/change-log.ru 10.1 KB 192.92 KB 55.12% (+/- <0.01%)
/docs/code-block-without-language.en-US 4.38 KB 187.21 KB 53.49% (+/- <0.01%)
/docs/conditional-fetching.en-US 5.18 KB 188.01 KB 53.72% (+/- <0.01%)
/docs/conditional-fetching.es-ES 5.24 KB 188.06 KB 53.73% (+/- <0.01%)
/docs/conditional-fetching.ru 5.47 KB 188.3 KB 53.80% (+/- <0.01%)
/docs/custom-header-ids.en-US 4.65 KB 187.48 KB 53.56% (🟡 +0.01%)
/docs/data-fetching.en-US 5.58 KB 188.4 KB 53.83% (+/- <0.01%)
/docs/data-fetching.es-ES 5.63 KB 188.45 KB 53.84% (+/- <0.01%)
/docs/data-fetching.ru 5.93 KB 188.76 KB 53.93% (+/- <0.01%)
/docs/error-handling.en-US 6.41 KB 189.23 KB 54.07% (+/- <0.01%)
/docs/error-handling.es-ES 6.55 KB 189.38 KB 54.11% (+/- <0.01%)
/docs/error-handling.ru 7.12 KB 189.95 KB 54.27% (+/- <0.01%)
/docs/getting-started.en-US 11.75 KB 194.57 KB 55.59% (+/- <0.01%)
/docs/getting-started.es-ES 11.38 KB 194.2 KB 55.49% (+/- <0.01%)
/docs/getting-started.ru 12.07 KB 194.9 KB 55.69% (+/- <0.01%)
/docs/global-configuration.en-US 5.46 KB 188.29 KB 53.80% (+/- <0.01%)
/docs/global-configuration.es-ES 5.52 KB 188.35 KB 53.81% (🟡 +0.01%)
/docs/global-configuration.ru 5.82 KB 188.65 KB 53.90% (+/- <0.01%)
/docs/middleware.en-US 7.08 KB 189.91 KB 54.26% (+/- <0.01%)
/docs/middleware.ru 7.9 KB 190.72 KB 54.49% (+/- <0.01%)
/docs/mutation.en-US 6.99 KB 189.81 KB 54.23% (+/- <0.01%)
/docs/mutation.es-ES 7.05 KB 189.87 KB 54.25% (+/- <0.01%)
/docs/mutation.ru 7.75 KB 190.58 KB 54.45% (+/- <0.01%)
/docs/options.en-US 6.02 KB 188.85 KB 53.96% (+/- <0.01%)
/docs/options.es-ES 6.17 KB 189 KB 54.00% (+/- <0.01%)
/docs/options.ru 6.79 KB 189.62 KB 54.18% (+/- <0.01%)
/docs/pagination.en-US 16.43 KB 199.26 KB 56.93% (+/- <0.01%)
/docs/pagination.es-ES 16.79 KB 199.62 KB 57.03% (+/- <0.01%)
/docs/pagination.ru 17.75 KB 200.57 KB 57.31% (+/- <0.01%)
/docs/prefetching.en-US 5.65 KB 188.48 KB 53.85% (+/- <0.01%)
/docs/prefetching.es-ES 5.75 KB 188.57 KB 53.88% (+/- <0.01%)
/docs/prefetching.ru 6.17 KB 188.99 KB 54.00% (+/- <0.01%)
/docs/raw-layout.en-US 4.9 KB 187.73 KB 53.64% (+/- <0.01%)
/docs/revalidation.en-US 10.69 KB 193.51 KB 55.29% (+/- <0.01%)
/docs/revalidation.es-ES 10.84 KB 193.66 KB 55.33% (+/- <0.01%)
/docs/revalidation.ru 11.42 KB 194.25 KB 55.50% (+/- <0.01%)
/docs/suspense.en-US 5.7 KB 188.52 KB 53.86% (+/- <0.01%)
/docs/suspense.es-ES 5.76 KB 188.58 KB 53.88% (+/- <0.01%)
/docs/suspense.ru 6.12 KB 188.95 KB 53.99% (+/- <0.01%)
/docs/typescript.en-US 5.97 KB 188.8 KB 53.94% (+/- <0.01%)
/docs/understanding.en-US 11.8 KB 194.63 KB 55.61% (+/- <0.01%)
/docs/understanding.es-ES 11.8 KB 194.63 KB 55.61% (+/- <0.01%)
/docs/understanding.ru 11.8 KB 194.62 KB 55.61% (+/- <0.01%)
/docs/with-nextjs.en-US 5.76 KB 188.58 KB 53.88% (+/- <0.01%)
/docs/with-nextjs.es-ES 5.89 KB 188.71 KB 53.92% (+/- <0.01%)
/docs/with-nextjs.ru 6.28 KB 189.11 KB 54.03% (+/- <0.01%)
/docs/wrap-toc-items.en-US 5.01 KB 187.84 KB 53.67% (+/- <0.01%)
/docs/wrap-toc-items.es-ES 5.01 KB 187.84 KB 53.67% (+/- <0.01%)
/docs/wrap-toc-items.ru 5.01 KB 187.83 KB 53.67% (+/- <0.01%)
/examples/auth.en-US 4.46 KB 187.28 KB 53.51% (+/- <0.01%)
/examples/auth.es-ES 4.46 KB 187.29 KB 53.51% (+/- <0.01%)
/examples/auth.ru 4.49 KB 187.32 KB 53.52% (+/- <0.01%)
/examples/basic.en-US 4.46 KB 187.29 KB 53.51% (+/- <0.01%)
/examples/basic.es-ES 4.46 KB 187.29 KB 53.51% (+/- <0.01%)
/examples/basic.ru 4.5 KB 187.33 KB 53.52% (+/- <0.01%)
/examples/error-handling.en-US 4.46 KB 187.29 KB 53.51% (+/- <0.01%)
/examples/error-handling.es-ES 4.47 KB 187.3 KB 53.51% (+/- <0.01%)
/examples/error-handling.ru 4.5 KB 187.33 KB 53.52% (+/- <0.01%)
/examples/full.en-US 4.44 KB 187.27 KB 53.51% (+/- <0.01%)
/examples/infinite-loading.en-US 4.48 KB 187.31 KB 53.52% (+/- <0.01%)
/examples/infinite-loading.es-ES 4.48 KB 187.31 KB 53.52% (+/- <0.01%)
/examples/infinite-loading.ru 4.52 KB 187.35 KB 53.53% (+/- <0.01%)
/examples/ssr.en-US 4.47 KB 187.3 KB 53.51% (+/- <0.01%)
/examples/ssr.ru 4.46 KB 187.29 KB 53.51% (+/- <0.01%)
/index.en-US 8.05 KB 190.88 KB 54.54% (+/- <0.01%)
/index.es-ES 7.83 KB 190.66 KB 54.47% (🟡 +0.01%)
/index.ru 8.25 KB 191.08 KB 54.59% (🟡 +0.01%)
/remote/graphql-yoga/_meta 238 B 183.06 KB 52.30% (+/- <0.01%)
/test.en-US 4.43 KB 187.26 KB 53.50% (+/- <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.

@dimaMachina dimaMachina restored the svgr branch July 8, 2023 14:38
@dimaMachina dimaMachina deleted the svgr branch July 8, 2023 14:43
tatukoivisto pushed a commit to tatukoivisto/nextra that referenced this pull request Aug 20, 2023
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.

None yet

1 participant