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

BP-4041 Buckaroo enqueues Gutenberg block JS files even when no block theme is used. #302

Open
matthijscremers opened this issue Dec 18, 2024 · 1 comment
Assignees
Labels
Priority: Normal This issue has a normal/medium priority. Status: Backlog This is currently on our backlog and not scheduled yet.

Comments

@matthijscremers
Copy link

Issue
Buckaroo makes Wordpress load the Gutenberg block JS files on all pages, regardless of if a block theme is used or not.

The effect of the issue
We use a non-FSE theme. Still all Gutenberg JS files now get enqueued on all pages because of the Buckaroo plugin, even though these files won't get used. This causes 30+ unneccesary JS files to load on all of our pages which isn't optimal for our Core Web Vitals metrics.

The fix
A potential solution to the issue would be for Buckaroo to add a settings option where the user can select if they want to make use of the classic or block payment gateway. If classic gets chosen, no of the Gutenberg JS files need to be loaded.

@matthijscremers matthijscremers changed the title Buckaroo enqueues Gutenberg block JS files even when no block theme is used Issue: Buckaroo enqueues Gutenberg block JS files even when no block theme is used Dec 18, 2024
@Buckaroo-Rene Buckaroo-Rene self-assigned this Dec 19, 2024
@Buckaroo-Rene Buckaroo-Rene added Status: Backlog This is currently on our backlog and not scheduled yet. Priority: Normal This issue has a normal/medium priority. labels Dec 19, 2024
@Buckaroo-Rene Buckaroo-Rene changed the title Issue: Buckaroo enqueues Gutenberg block JS files even when no block theme is used BP-4041 Buckaroo enqueues Gutenberg block JS files even when no block theme is used Dec 19, 2024
@Buckaroo-Rene Buckaroo-Rene changed the title BP-4041 Buckaroo enqueues Gutenberg block JS files even when no block theme is used BP-4041 Buckaroo enqueues Gutenberg block JS files even when no block theme is used. Dec 19, 2024
@Buckaroo-Rene
Copy link
Contributor

Buckaroo-Rene commented Dec 19, 2024

Hi @matthijscremers ,

Thank you for bringing this issue to our attention.
I've logged a ticket for our team to investigate further BP-4041.
Please note that the ticket is currently in our backlog.
I’ll keep you updated once it’s scheduled for a sprint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Normal This issue has a normal/medium priority. Status: Backlog This is currently on our backlog and not scheduled yet.
Projects
None yet
Development

No branches or pull requests

2 participants