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

Upgrade to Astro v5 and preact #1153

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lukewarlow
Copy link
Collaborator

This happens to improve the prefetch behaviour so that it only happens on link hover instead of on page load.

@@ -6,7 +6,8 @@ const CONTRIBUTORS = [];
const fetchContributors = async (page) => {
const response = await fetch(`${CONTRIBUTORS_URL}?page=${page}`);
const contributors = await response.json();
CONTRIBUTORS.push(...contributors);
if (Array.isArray(contributors))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The home page crashes locally pretty quickly without this check, as GitHub API has rate limits.

This happens to improve the prefetch behaviour so that it only happens on link hover instead of on page load.
@lukewarlow
Copy link
Collaborator Author

I think this will need the netfliy nodejs version upgraded.

This reduces the size of the JS bundles.
@lukewarlow lukewarlow changed the title Upgrade to Astro v5 Upgrade to Astro v5 and preact Feb 7, 2025
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.

1 participant