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

refactor: wrap header and footer in suspense #1388

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

deini
Copy link
Member

@deini deini commented Sep 19, 2024

What/Why?

This is prep work for PPR. Moves the layout query from being fetched in the layout to header / footer. The request gets deduped by React.

Adds a header skeleton to avoid layout shifts.

Testing

Copy link

changeset-bot bot commented Sep 19, 2024

🦋 Changeset detected

Latest commit: 4d67210

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Sep 19, 2024

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

Name Status Preview Comments Updated (UTC)
catalyst-latest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 6:38pm
6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst ⬜️ Ignored (Inspect) Sep 19, 2024 6:38pm
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 6:38pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 6:38pm
catalyst-test-store ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 6:38pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 6:38pm
catalyst-unstable ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 6:38pm

Copy link
Contributor

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-e7n0g1xt6-bigcommerce-platform.vercel.app

🖥️ Desktop

We ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:

Category Score
🟠 Performance 82
🟢 Accessibility 100
🟢 Best practices 96
🟠 SEO 82

📱 Mobile

We ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:

Category Score
🟠 Performance 87
🟢 Accessibility 100
🟢 Best practices 96
🟠 SEO 85

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