Skip to content

feat: defer plausible-analytics script #242

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

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

joshbetz
Copy link

@joshbetz joshbetz commented Mar 4, 2025

Since WordPress 6.3, we've been able to defer scripts. The plausible-analytic script is a good candidate for this.

https://make.wordpress.org/core/2023/07/14/registering-scripts-with-async-and-defer-attributes-in-wordpress-6-3/

Since WordPress 6.3, we've been able to defer scripts. The plausible-analytic script is a good candidate for this.

https://make.wordpress.org/core/2023/07/14/registering-scripts-with-async-and-defer-attributes-in-wordpress-6-3/
@Dan0sz Dan0sz changed the base branch from develop to defer_plausible_js March 5, 2025 09:55
@Dan0sz Dan0sz merged commit ee56ffd into plausible:defer_plausible_js Mar 13, 2025
0 of 4 checks passed
@Dan0sz
Copy link
Collaborator

Dan0sz commented Mar 13, 2025

@joshbetz Currently testing this in #246, but can you tell me what the improvement is over the defer attribute already present?

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