From 5b4cbc0a3aaaddf033e3d0f5476ab8ae9b176bf4 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 9 Jan 2025 14:43:08 -0800 Subject: [PATCH 1/3] Add failing test case where data: in srcset should not be preloaded --- .../img-non-native-lazy-loading.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/plugins/image-prioritizer/tests/test-cases/img-non-native-lazy-loading.php b/plugins/image-prioritizer/tests/test-cases/img-non-native-lazy-loading.php index 93f98198b9..8cb2b2ff74 100644 --- a/plugins/image-prioritizer/tests/test-cases/img-non-native-lazy-loading.php +++ b/plugins/image-prioritizer/tests/test-cases/img-non-native-lazy-loading.php @@ -14,6 +14,10 @@ 'xpath' => '/*[1][self::HTML]/*[2][self::BODY]/*[1][self::IMG]', 'isLCP' => true, ), + array( + 'xpath' => '/*[1][self::HTML]/*[2][self::BODY]/*[1][self::IMG]', + 'isLCP' => false, + ), ), ) ) @@ -27,6 +31,19 @@ + + + Bar