-
Notifications
You must be signed in to change notification settings - Fork 235
Closes #7284: Preload Fonts - Filter to add extensions #7318
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
Miraeld
merged 27 commits into
feature/3.19
from
enhancement/7284-add-filter-to-add-extension
May 15, 2025
Merged
Changes from 22 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
8742783
Move description
Miraeld 7abfead
Adds new checkbox
Miraeld 5ebfd35
Adds logic on upgrade
Miraeld bfc0acc
Fix linter
Miraeld 87ad74d
Enable auto preload fonts based on legacy settings
Miraeld dc7ca66
Add auto preload fonts option to settings
Miraeld d27d154
Fix tests
Miraeld 0914246
Add description + more info link
Miraeld 3fb8689
Closes #7239: 3.19 - User interface (#7303)
Miraeld f814215
Merge branch 'feature/3.19' into feature/preload-fonts
Khadreal eeaa286
Closes #7242 3.19 - Preload Fonts - Data insertion part (#7274)
Khadreal 6a3be3c
Merge branch 'feature/3.19' into feature/preload-fonts
wordpressfan 045ea4a
Merge branch 'feature/3.19' into feature/preload-fonts
wordpressfan 78637b7
Closes #7284: Adds filter to add fonts extensions
Miraeld fba2f27
Fix fixtures
Miraeld 196388c
Fix Linter
Miraeld 92d2612
Merge branch 'feature/3.19' into enhancement/7284-add-filter-to-add-e…
Miraeld c19dbd3
Fix tests
Miraeld d75a08e
Fix linter
Miraeld fcfb19e
Merge branch 'feature/3.19' into enhancement/7284-add-filter-to-add-e…
Miraeld a54ac2e
Fix tests
Miraeld 66e28e4
Assign filter result to variable
Miraeld e098e3b
Update inc/Engine/Media/PreloadFonts/Frontend/Controller.php
Miraeld 1cf26ef
Update inc/Engine/Media/PreloadFonts/Frontend/Controller.php
Miraeld e2ae637
Update beacon
Miraeld b090af0
Merge branch 'feature/3.19' into enhancement/7284-add-filter-to-add-e…
Miraeld f4307b0
Update package.json
Miraeld File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...c/Engine/Common/PerformanceHints/Frontend/Subscriber/HTML/no_closing_body_tag_output.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,11 @@ | ||
| <html> | ||
| <head> | ||
| <title>Test</title> | ||
| <title> | ||
| Test</title> | ||
| </head> | ||
| <body> | ||
| </html> | ||
| <script>var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script> | ||
| <script> | ||
| var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"processed_extensions":["woff2","woff","ttf"],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script> | ||
| <script data-name="wpr-wpr-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async> | ||
| </script> |
41 changes: 24 additions & 17 deletions
41
...s/inc/Engine/Common/PerformanceHints/Frontend/Subscriber/HTML/output_double_body_tag.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,29 @@ | ||
| <html> | ||
| <head> | ||
| <title>Test</title> | ||
| <title> | ||
| Test</title> | ||
| </head> | ||
| <body> | ||
| <iframe srcdoc=" | ||
| <!DOCTYPE html> | ||
| <html lang='en'> | ||
| <head> | ||
| <meta charset='UTF-8'> | ||
| <meta name='viewport' content='width=device-width, initial-scale=1.0'> | ||
| <title>Iframe Content</title> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <h1>Iframe Header</h1> | ||
| </header> | ||
| </body> | ||
| </html> | ||
| " width="600" height="400" style="border:none;"></iframe> | ||
| <script>var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script><script data-name="wpr-wpr-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async></script></body> | ||
| <iframe srcdoc="<!DOCTYPE html> | ||
| <html lang='en'> | ||
| <head> | ||
| <meta charset='UTF-8'> | ||
| <meta name='viewport' content='width=device-width, initial-scale=1.0'> | ||
| <title> | ||
| Iframe Content</title> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <h1> | ||
| Iframe Header</h1> | ||
| </header> | ||
| </body> | ||
| </html> | ||
| " width="600" height="400" style="border:none;"> | ||
| </iframe> | ||
| <script> | ||
| var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"processed_extensions":["woff2","woff","ttf"],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script> | ||
| <script data-name="wpr-wpr-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async> | ||
| </script> | ||
| </body> | ||
| </html> |
22 changes: 14 additions & 8 deletions
22
...res/inc/Engine/Common/PerformanceHints/Frontend/Subscriber/HTML/output_preload_fonts.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,16 @@ | ||
| <html> | ||
| <head> | ||
| <title>Test</title> | ||
| <link data-rocket-preload as="font" href="http://example.org/assets/fonts/font1.woff2" rel="preload"> | ||
| <link data-rocket-preload as="font" href="http://example.org/assets/fonts/font2.ttf" rel="preload"> | ||
| <link rel="stylesheet" href="http://example.org/assets/fonts/font1.woff2"> | ||
| <link rel="stylesheet" href="http://example.org/assets/fonts/font2.ttf"> | ||
| </head> | ||
| <body><script>var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script><script data-name="wpr-wpr-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async></script></body> | ||
| <head> | ||
| <title> | ||
| Test</title> | ||
| <link data-rocket-preload as="font" href="http://example.org/assets/fonts/font1.woff2" rel="preload"> | ||
| <link data-rocket-preload as="font" href="http://example.org/assets/fonts/font2.ttf" rel="preload"> | ||
| <link rel="stylesheet" href="http://example.org/assets/fonts/font1.woff2"> | ||
| <link rel="stylesheet" href="http://example.org/assets/fonts/font2.ttf"> | ||
| </head> | ||
| <body> | ||
| <script> | ||
| var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"processed_extensions":["woff2","woff","ttf"],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script> | ||
| <script data-name="wpr-wpr-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async> | ||
| </script> | ||
| </body> | ||
| </html> |
22 changes: 14 additions & 8 deletions
22
.../Common/PerformanceHints/Frontend/Subscriber/HTML/output_preload_fonts_w_crossorigin.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,16 @@ | ||
| <html> | ||
| <head> | ||
| <title>Test</title> | ||
| <link crossorigin data-rocket-preload as="font" href="http://external.domain/assets/fonts/font1.woff2" rel="preload"> | ||
| <link data-rocket-preload as="font" href="http://example.org/assets/fonts/font2.ttf" rel="preload"> | ||
| <link rel="stylesheet" href="http://external.domain/assets/fonts/font1.woff2"> | ||
| <link rel="stylesheet" href="http://example.org/assets/fonts/font2.ttf"> | ||
| </head> | ||
| <body><script>var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script><script data-name="wpr-wpr-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async></script></body> | ||
| <head> | ||
| <title> | ||
| Test</title> | ||
| <link crossorigin data-rocket-preload as="font" href="http://external.domain/assets/fonts/font1.woff2" rel="preload"> | ||
| <link data-rocket-preload as="font" href="http://example.org/assets/fonts/font2.ttf" rel="preload"> | ||
| <link rel="stylesheet" href="http://external.domain/assets/fonts/font1.woff2"> | ||
| <link rel="stylesheet" href="http://example.org/assets/fonts/font2.ttf"> | ||
| </head> | ||
| <body> | ||
| <script> | ||
| var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"processed_extensions":["woff2","woff","ttf"],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script> | ||
| <script data-name="wpr-wpr-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async> | ||
| </script> | ||
| </body> | ||
| </html> |
22 changes: 14 additions & 8 deletions
22
...ommon/PerformanceHints/Frontend/Subscriber/HTML/output_preload_fonts_w_relative_path.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,16 @@ | ||
| <html> | ||
| <head> | ||
| <title>Test</title> | ||
| <link data-rocket-preload as="font" href="/assets/fonts/font1.woff2" rel="preload"> | ||
| <link data-rocket-preload as="font" href="/assets/fonts/font2.ttf" rel="preload"> | ||
| <link rel="stylesheet" href="/assets/fonts/font1.woff2"> | ||
| <link rel="stylesheet" href="/assets/fonts/font2.ttf"> | ||
| </head> | ||
| <body><script>var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script><script data-name="wpr-wpr-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async></script></body> | ||
| <head> | ||
| <title> | ||
| Test</title> | ||
| <link data-rocket-preload as="font" href="/assets/fonts/font1.woff2" rel="preload"> | ||
| <link data-rocket-preload as="font" href="/assets/fonts/font2.ttf" rel="preload"> | ||
| <link rel="stylesheet" href="/assets/fonts/font1.woff2"> | ||
| <link rel="stylesheet" href="/assets/fonts/font2.ttf"> | ||
| </head> | ||
| <body> | ||
| <script> | ||
| var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"processed_extensions":["woff2","woff","ttf"],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script> | ||
| <script data-name="wpr-wpr-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async> | ||
| </script> | ||
| </body> | ||
| </html> |
9 changes: 7 additions & 2 deletions
9
...Fixtures/inc/Engine/Common/PerformanceHints/Frontend/Subscriber/HTML/output_w_beacon.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,12 @@ | ||
| <html> | ||
| <head> | ||
| <title>Test</title> | ||
| <title> | ||
| Test</title> | ||
| </head> | ||
| <body> | ||
| <script>var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script><script data-name="wpr-wpr-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async></script></body> | ||
| <script> | ||
| var rocket_beacon_data = {"ajax_url":"http:\/\/example.org\/wp-admin\/admin-ajax.php","nonce":"96ac96b69e","url":"http:\/\/example.org","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":false,"status":{"atf":true,"lrc":true,"preload_fonts":true,"preconnect_external_domain":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800,"system_fonts":["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","Arial","Helvetica","Times New Roman","Times","Courier New","Courier","Georgia","Palatino","Garamond","Bookman","Tahoma","Trebuchet MS","Arial Black","Impact","Comic Sans MS"],"font_data":[],"processed_extensions":["woff2","woff","ttf"],"preconnect_external_domain_elements":["link","script","iframe"],"preconnect_external_domain_exclusions":[{"type":"attribute","key":"rel","value":"profile"},{"type":"attribute","key":"rel","value":"preconnect"},{"type":"attribute","key":"rel","value":"dns-prefetch"},{"type":"attribute","key":"async","value":""},{"type":"domain","value":"static.cloudflareinsights.com"}]}</script> | ||
| <script data-name="wpr-wpr-beacon" src='http://example.org/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async> | ||
| </script> | ||
| </body> | ||
| </html> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.