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

Add static toggle #395

Merged
merged 2 commits into from
Jul 4, 2023
Merged

Add static toggle #395

merged 2 commits into from
Jul 4, 2023

Conversation

pomber
Copy link
Contributor

@pomber pomber commented Jul 4, 2023

Export <CH.StaticToggle /> to force the static version.

📦 Published PR as canary version: 0.9.1--canary.395.984614e.0

✨ Test out this PR locally via:

npm install @code-hike/[email protected]
# or 
yarn add @code-hike/[email protected]

Version

Published prerelease version: v0.9.1-next.2

Changelog

🐛 Bug Fix

⚠️ Pushed to next

  • Add backticks to release message (@pomber)

Authors: 2

@vercel
Copy link

vercel bot commented Jul 4, 2023

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

Name Status Preview Comments Updated (UTC)
chtest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2023 9:42am
playground ✅ Ready (Inspect) Visit Preview Jul 4, 2023 9:42am

@vercel vercel bot temporarily deployed to Preview – chtest July 4, 2023 09:42 Inactive
@pomber pomber added patch release PR created automatically for new releases labels Jul 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

📦 Next.js Bundle Analysis for bundle-test

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

Three 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)
/just-code 26.23 KB 100.89 KB 28.83% (🟢 -0.06%)
/scrollycoding-preview 29.29 KB 103.95 KB 29.70% (🟢 -0.05%)
/spotlight 26.79 KB 101.44 KB 28.98% (🟢 -0.05%)
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.

@pomber pomber merged commit 111f44a into next Jul 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Released in v0.9.1-next.2 🚀

Thanks for using Code Hike! Become a sponsor and help us keep innovating.

@pomber pomber deleted the static-toggle branch July 4, 2023 11:24
@github-actions github-actions bot mentioned this pull request Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release PR created automatically for new releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant