-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #6553: Frontend optimization applied for the wrong element in …
…some cases (#6554)
- Loading branch information
1 parent
5d51e47
commit 0a85128
Showing
8 changed files
with
158 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
17 changes: 17 additions & 0 deletions
17
...Fixtures/inc/Engine/Media/AboveTheFold/Frontend/Subscriber/HTML/input_w_bg_image_lcp.html
This file contains 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<html> | ||
<head> | ||
<title>Test</title> | ||
<style> | ||
.test{ | ||
width: 100%; | ||
height: 400px; | ||
background-image: url("http://example.org/wp-content/uploads/image.jpg"); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="test"></div> | ||
<img src="http://example.org/wp-content/uploads/image2.jpg" alt="image2" /> | ||
<img src="http://example.org/wp-content/uploads/image3.jpg" alt="image3" /> | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
tests/Fixtures/inc/Engine/Media/AboveTheFold/Frontend/Subscriber/HTML/input_w_img_lcp.html
This file contains 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html> | ||
<head> | ||
<title>Test</title> | ||
</head> | ||
<body> | ||
<img src="http://example.org/wp-content/uploads/image.jpg"> | ||
<img src="http://example.org/wp-content/uploads/image2.jpg"> | ||
<img src="http://example.org/wp-content/uploads/image3.jpg"> | ||
</body> | ||
</html> |
12 changes: 12 additions & 0 deletions
12
...tures/inc/Engine/Media/AboveTheFold/Frontend/Subscriber/HTML/input_w_picture_img_lcp.html
This file contains 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<html> | ||
<head> | ||
<title>Test</title> | ||
</head> | ||
<body> | ||
<picture> | ||
<img src="http://example.org/wp-content/uploads/image.jpg"> | ||
</picture> | ||
<img src="http://example.org/wp-content/uploads/image2.jpg"> | ||
<img src="http://example.org/wp-content/uploads/image3.jpg"> | ||
</body> | ||
</html> |
17 changes: 17 additions & 0 deletions
17
...ixtures/inc/Engine/Media/AboveTheFold/Frontend/Subscriber/HTML/output_w_bg_image_lcp.html
This file contains 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<html> | ||
<head> | ||
<title>Test</title><link rel="preload" as="image" href="http://example.org/wp-content/uploads/image.jpg" fetchpriority="high"> | ||
<style> | ||
.test{ | ||
width: 100%; | ||
height: 400px; | ||
background-image: url("http://example.org/wp-content/uploads/image.jpg"); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="test"></div> | ||
<img src="http://example.org/wp-content/uploads/image2.jpg" alt="image2" /> | ||
<img src="http://example.org/wp-content/uploads/image3.jpg" alt="image3" /> | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
tests/Fixtures/inc/Engine/Media/AboveTheFold/Frontend/Subscriber/HTML/output_w_img_lcp.html
This file contains 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html> | ||
<head> | ||
<title>Test</title><link rel="preload" as="image" href="http://example.org/wp-content/uploads/image.jpg" fetchpriority="high"> | ||
</head> | ||
<body> | ||
<img fetchpriority="high" src="http://example.org/wp-content/uploads/image.jpg"> | ||
<img src="http://example.org/wp-content/uploads/image2.jpg"> | ||
<img src="http://example.org/wp-content/uploads/image3.jpg"> | ||
</body> | ||
</html> |
12 changes: 12 additions & 0 deletions
12
...ures/inc/Engine/Media/AboveTheFold/Frontend/Subscriber/HTML/output_w_picture_img_lcp.html
This file contains 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<html> | ||
<head> | ||
<title>Test</title><link rel="preload" as="image" href="http://example.org/wp-content/uploads/image.jpg" fetchpriority="high"> | ||
</head> | ||
<body> | ||
<picture> | ||
<img fetchpriority="high" src="http://example.org/wp-content/uploads/image.jpg"> | ||
</picture> | ||
<img src="http://example.org/wp-content/uploads/image2.jpg"> | ||
<img src="http://example.org/wp-content/uploads/image3.jpg"> | ||
</body> | ||
</html> |
This file contains 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