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

Prefetch the cart link immediately after add-to-cart #716

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

bookernath
Copy link
Contributor

@bookernath bookernath commented Mar 28, 2024

What/Why?

Add opportunistic prefetch to the cart link a shopper sees immediately after add-to-cart, since they are very likely to click on it after adding to cart.

This is a low-traffic, high-value deployment of prefetch which significantly improves the experience.

Testing

Added to cart on PDP, PLP, and compare page and compared load performance of the cart link to main.

Try it yourself on the preview deployment.

@bookernath bookernath requested a review from a team as a code owner March 28, 2024 02:46
Copy link

changeset-bot bot commented Mar 28, 2024

🦋 Changeset detected

Latest commit: a3bf8da

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 Mar 28, 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 Mar 28, 2024 2:59am
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 2:59am
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 2:59am
catalyst-storybook ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 2:59am
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 2:59am

Copy link
Contributor

⚡️🏠 Lighthouse report

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

Category Score
🟢 Performance 98
🟢 Accessibility 100
🟠 Best practices 78
🟢 SEO 92

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

@bookernath bookernath added this pull request to the merge queue Mar 28, 2024
Copy link
Contributor

@jorgemoya jorgemoya left a comment

Choose a reason for hiding this comment

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

Great idea!

Merged via the queue into main with commit b1a2939 Mar 28, 2024
11 checks passed
@bookernath bookernath deleted the prefetch-cart-link branch March 28, 2024 15:01
This was referenced Mar 28, 2024
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.

3 participants