-
Notifications
You must be signed in to change notification settings - Fork 69
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
perf: unneeded WooPay scripts #8829
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.26 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌 Looks good
Thanks @brettshumaker - I'll be waiting for people's blessings in here before merging |
It looks like this PR has been merged with only the changelog entry. This is because the same changes were also implemented in #8644 , which has been merged first. |
Fixes #
Changes proposed in this Pull Request
The
client/checkout/woopay/index.js
scripts are used on checkout pages to render the "save user" section.I noticed these scripts are enqueued on every page, even product pages.
Together with these, more than half a dozen additional WC Blocks scripts are being enqueued.
Since we don't need to render them on non-checkout pages, let's ensure they are not enqueued.
Testing instructions
dist/woopay.js
file enqueueddist/woopay.js
file enqueuednpm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge