polarsource / polar

An Open Source Lemon Squeezy alternative with better pricing! Get paid coding on your passion.
https://polar.sh
Apache License 2.0
2.85k stars 117 forks source link

Polish Checkout #4192

Closed emilwidlund closed 1 week ago

vercel[bot] commented 1 week ago

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

Name Status Preview Comments Updated (UTC)
polar 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 1:20pm
polar-sandbox 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 1:20pm
github-actions[bot] commented 1 week ago

📦 Next.js Bundle Analysis for web

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

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 190.85 KB (-2 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!

Twenty-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)
/_not-found/page 350 B 191.19 KB 54.63% (+/- <0.01%)
/layout 106.98 KB 297.82 KB 85.09% (🟡 +0.02%)
/login/magic-link/authenticate/page 350 B 191.19 KB 54.63% (+/- <0.01%)
/login/magic-link/request/page 350 B 191.19 KB 54.63% (+/- <0.01%)
/(installation)/github/layout 351 B 191.19 KB 54.63% (+/- <0.01%)
/[organization]/(header)/page 120.31 KB 311.16 KB 88.90% (🟡 +0.01%)
/[organization]/(header)/subscriptions/page 348 B 191.19 KB 54.62% (+/- <0.01%)
/[organization]/(header)/products/[productId]/page 181.99 KB 372.84 KB 106.52% (🟡 +0.02%)
/checkout/[clientSecret]/page 181.98 KB 372.83 KB 106.52% (🟡 +0.02%)
/checkout/[clientSecret]/confirmation/page 146.97 KB 337.82 KB 96.52% (🟡 +0.01%)
/dashboard/(create)/layout 350 B 191.19 KB 54.63% (+/- <0.01%)
/dashboard/[organization]/(header)/products/page 558.67 KB 749.52 KB 214.15% (🟡 +0.02%)
/dashboard/[organization]/(overlay)/storefront/page 352.53 KB 543.37 KB 155.25% (🟡 +0.02%)
/dashboard/[organization]/products/[id]/page 611.63 KB 802.47 KB 229.28% (🟡 +0.01%)
/dashboard/[organization]/products/new/page 610.43 KB 801.28 KB 228.94% (🟡 +0.01%)
/(landing)/(mdx)/legal/terms/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/(landing)/(mdx)/layout 349 B 191.19 KB 54.63% (+/- <0.01%)
/(landing)/(mdx)/legal/privacy/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/(mdx)/fees/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/(mdx)/finance/payouts/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/(mdx)/github/funding-yaml/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/(mdx)/subscriptions/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/api/(mdx)/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/api/(mdx)/sdk/github-actions/page 33.47 KB 224.32 KB 64.09% (+/- <0.01%)
/docs/api/(mdx)/sdk/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/support/(mdx)/page 31.09 KB 221.94 KB 63.41% (+/- <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.