You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If instead of </title> the theme adds </title >, which is still valid, we won't add the code to preload the LCP to the page.
That kind of scenario would be possible for themes that don't use add_theme_support( 'title-tag' ); and are adding the <title></title> on their own, or for specific templates.
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
We rely on detecting
</title>
to add preloaded LCP on a page:https://github.com/wp-media/wp-rocket/blob/9e73f9473c9c5a3d194ad87564eafe43438d3fea/inc/Engine/Media/AboveTheFold/Frontend/Controller.php
If instead of
</title>
the theme adds</title >
, which is still valid, we won't add the code to preload the LCP to the page.That kind of scenario would be possible for themes that don't use
add_theme_support( 'title-tag' );
and are adding the<title></title>
on their own, or for specific templates.To Reproduce
Steps to reproduce the behavior:
Expected behavior
We should be able to correctly append the preloaded LCP to </title >.
Additional context
N/A
Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming
The text was updated successfully, but these errors were encountered: