-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add Speculative Loading generator tag #1102
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Maybe take this as an opportunity to align the other functions with this one? Namely, the constant checks seem to be a vestige of the module past. performance/plugins/dominant-color-images/hooks.php Lines 180 to 187 in 71055b3
performance/plugins/webp-uploads/hooks.php Lines 772 to 778 in 71055b3
performance/plugins/embed-optimizer/hooks.php Lines 164 to 170 in 71055b3
Aside: It seems Auto Sizes is missing a generator meta tag also. |
Done in c6252cf
Let's do that in a separate PR. Another idea: Should we use the plugin slug instead of the plugin name for all those individual generator tags? That would be more in line with the main Performance Lab generator tag, and furthermore would avoid having to make a trade-off between using outdated plugin names vs the maintenance burden of having to adjust tooling every time we may change the plugin name. Since those generator tags are still new and I assume aren't used much, it would probably be fine to change them once at this point to be the slug, and after that they'll be "stable" forever. |
Good idea! Let's use slugs. 🐌 |
Why? You're already in here modifying other plugins' generator meta tags. Will reduce noise to just do it all here. |
I'll do that in a separate follow up PR, as it's a distinct change affecting several plugins in a way that I'd put it in the changelog.
Similar to the above, I prefer to do this separately as it would touch another plugin and should be mentioned in the changelog. It's quick anyway. |
I would also like to do the follow-up work on a separate PR. |
Summary
Adds a generator tag to the Speculative Loading plugin, similar to how the other standalone plugins include one.
Relevant technical choices