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

feat: Preload routes and repl #1222

Merged
merged 5 commits into from
Jan 7, 2025
Merged

Conversation

rschristian
Copy link
Member

Using the recent addition of the .preload() method from preact-iso@2.8.0, this PR preloads our few split chunks on mouse over and also preloads the REPL Code Editor & Runner chunks. Depending on how quick you are at clicking, can be a pretty considerable speed up.

Also refactors use-resource & use-content a bit, adding a new use-repl as well. Should be a bit easier to follow now.

@rschristian rschristian force-pushed the refactor/preload-routes-and-repl branch from 6e65b25 to 9378c1d Compare January 7, 2025 07:34
@@ -470,7 +470,6 @@
height: 56px;
min-width: 80px;
overflow: visible;
background: var(--color-brand);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, drive-by fix: the height of the search bar is ever so slightly larger than the other header items, and, on mobile, it overlaps (and I mean by 1-2px) into the Ukraine banner above it. We don't need a background here though, it's already sitting on a brand-colored header, so removing this fixes that.

@rschristian rschristian merged commit b4f3adc into master Jan 7, 2025
5 checks passed
@rschristian rschristian deleted the refactor/preload-routes-and-repl branch January 7, 2025 07:56
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