Skip to content

Commit

Permalink
Closes #6667: Add header to lcp candidates elements (#6670)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miraeld committed May 31, 2024
1 parent c5efbd1 commit 39b8f18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions inc/Engine/Media/AboveTheFold/Frontend/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ private function lcp_atf_elements(): string {
'li',
'svg',
'section',
'header',
];

$default_elements = $elements;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
<title>Test</title>
</head>
<body>
<script>var rocket_lcp_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"elements":"img, video, picture, p, main, div, li, svg, section","width_threshold":1600,"height_threshold":700,"debug":false}</script><script data-name="wpr-lcp-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/lcp-beacon.min.js' async></script></body>
<script>var rocket_lcp_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"elements":"img, video, picture, p, main, div, li, svg, section, header","width_threshold":1600,"height_threshold":700,"debug":false}</script><script data-name="wpr-lcp-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/lcp-beacon.min.js' async></script></body>
</html>

0 comments on commit 39b8f18

Please sign in to comment.