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

clients/profile: only render sub button if enabled #3529

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

emilwidlund
Copy link
Member

@emilwidlund emilwidlund commented Jun 25, 2024

Fixes #3325.

Copy link

vercel bot commented Jun 25, 2024

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

Name Status Preview Comments Updated (UTC)
polar ❌ Failed (Inspect) Jun 25, 2024 7:38am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
polar-next-js-example ⬜️ Ignored (Inspect) Jun 25, 2024 7:38am

Copy link
Contributor

📦 Next.js Bundle Analysis for web

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

Fifty-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)
/layout 53.84 KB 277.93 KB 79.41% (🟢 -0.01%)
/maintainer/page 448.75 KB 672.84 KB 192.24% (+/- <0.01%)
/[organization]/(sidebar)/page 228.88 KB 452.97 KB 129.42% (🟢 -0.01%)
/[organization]/[repo]/page 223.45 KB 447.53 KB 127.87% (🟢 -0.01%)
/backoffice/layout 455.81 KB 679.89 KB 194.26% (🟢 -0.01%)
/maintainer/new/page 448.48 KB 672.57 KB 192.16% (+/- <0.01%)
/docs/layout 430.25 KB 654.33 KB 186.95% (+/- <0.01%)
/docs/(mdx)/api-reference/authentication/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/docs/(mdx)/layout 202.82 KB 426.91 KB 121.97% (+/- <0.01%)
/docs/(mdx)/api-reference/github-actions/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/api-reference/introduction/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/api-reference/polar-sdk/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/docs/(mdx)/api-reference/webhooks/events/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/api-reference/webhooks/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/guides/overview/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/ads/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/benefits/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/donations/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/faq/for-backers/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/faq/for-contributors/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/faq/for-maintainers/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/docs/(mdx)/overview/faq/overview/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/issue-funding/getting-started/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/docs/(mdx)/overview/issue-funding/overview/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/issue-funding/promote/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/issue-funding/reward-contributors/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/newsletters/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/issue-funding/workflow/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/docs/(mdx)/overview/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/payments-taxes/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/docs/(mdx)/overview/subscriptions/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/support/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/maintainer/[organization]/(topbar)/layout 455.81 KB 679.9 KB 194.26% (+/- <0.01%)
/maintainer/[organization]/(topbar)/donations/overview/page 568.55 KB 792.64 KB 226.47% (+/- <0.01%)
/maintainer/[organization]/(topbar)/funding/page 477.38 KB 701.46 KB 200.42% (+/- <0.01%)
/maintainer/[organization]/(topbar)/issues/badge/page 468.64 KB 692.73 KB 197.92% (+/- <0.01%)
/maintainer/[organization]/(topbar)/issues/overview/page 484.43 KB 708.52 KB 202.43% (+/- <0.01%)
/maintainer/[organization]/(topbar)/members/page 445.69 KB 669.78 KB 191.36% (+/- <0.01%)
/maintainer/[organization]/(topbar)/overview/page 467.8 KB 691.89 KB 197.68% (+/- <0.01%)
/maintainer/[organization]/(topbar)/posts/page 556.7 KB 780.78 KB 223.08% (+/- <0.01%)
/maintainer/[organization]/(topbar)/posts/analytics/page 560.98 KB 785.07 KB 224.30% (+/- <0.01%)
/maintainer/[organization]/(topbar)/products/benefits/page 532.53 KB 756.62 KB 216.18% (🟢 -0.01%)
/maintainer/[organization]/(topbar)/products/overview/page 519.4 KB 743.49 KB 212.43% (+/- <0.01%)
/maintainer/[organization]/(topbar)/sales/orders/page 474.14 KB 698.23 KB 199.49% (+/- <0.01%)
/maintainer/[organization]/(topbar)/sales/overview/page 565.3 KB 789.39 KB 225.54% (+/- <0.01%)
/maintainer/[organization]/(topbar)/sales/subscriptions/page 486.69 KB 710.78 KB 203.08% (+/- <0.01%)
/maintainer/[organization]/(topbar)/settings/page 460.44 KB 684.53 KB 195.58% (+/- <0.01%)
/maintainer/[organization]/(topbar)/settings/webhooks/endpoints/[id]/page 482.25 KB 706.33 KB 201.81% (+/- <0.01%)
/maintainer/[organization]/(white)/posts/[post]/page 547.47 KB 771.55 KB 220.44% (+/- <0.01%)
/maintainer/[organization]/(white)/layout 441.05 KB 665.14 KB 190.04% (+/- <0.01%)
/maintainer/[organization]/(white)/posts/new/page 545.02 KB 769.11 KB 219.74% (+/- <0.01%)
/maintainer/[organization]/promote/page 461.92 KB 686.01 KB 196.00% (+/- <0.01%)
/maintainer/[organization]/promote/layout 441.05 KB 665.14 KB 190.04% (+/- <0.01%)
/(landing)/(mdx)/careers/page 173.14 KB 397.22 KB 113.49% (+/- <0.01%)
/maintainer/[organization]/(topbar)/finance/layout 441.05 KB 665.14 KB 190.04% (+/- <0.01%)
/maintainer/[organization]/(topbar)/finance/issue-funding/layout 441.05 KB 665.14 KB 190.04% (+/- <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.

@emilwidlund emilwidlund merged commit 02492ce into main Jun 25, 2024
8 of 9 checks passed
@emilwidlund emilwidlund deleted the polish-platform branch June 25, 2024 07:41
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.

Subscribe-button present on creators without subscription tiers enabled
1 participant