From 6c8d8855f2779e9e97e1be39c3cc50f0b1cf092c Mon Sep 17 00:00:00 2001 From: Chris Millar Date: Wed, 8 Nov 2023 15:58:39 -0700 Subject: [PATCH 1/3] MWPW-139001 - Adjust LCP Image Loading * Only load all images if the marquee has a split variant --- scripts/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index 09df7c7..a92cc4a 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -138,7 +138,7 @@ const eagerLoad = (img) => { }; (async function loadLCPImage() { - const marquee = document.querySelector('.marquee'); + const marquee = document.querySelector('.marquee.split'); if (marquee) { marquee.querySelectorAll('img').forEach(eagerLoad); } else { From 0e9268edb79df08101b7b377137b0b70a6274bf1 Mon Sep 17 00:00:00 2001 From: Ryan Parrish Date: Tue, 14 Nov 2023 10:32:00 -0700 Subject: [PATCH 2/3] revert grid-width fix. comming from Milo (#155) --- styles/styles.css | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/styles/styles.css b/styles/styles.css index 1e8f9d3..113a598 100644 --- a/styles/styles.css +++ b/styles/styles.css @@ -67,41 +67,3 @@ div[class*='-up'] .con-block.has-bg.text-block.text-list, .caas-spacing-m { min-height: 500px; } - -/* Section metadata fix */ -main > .section[class*='-up'] > .content { - max-width: initial; - margin: 0; -} - -main .section[class*='grid-width-'] { - padding-left: unset; - padding-right: unset; - display: block; -} - -main .section.two-up, -main .section.three-up, -main .section.four-up, -main .section.five-up { - display: grid; - padding-left: var(--grid-margins-width); - padding-right: var(--grid-margins-width); -} - -@media screen and (min-width: 1200px) { - main .section.grid-width-10 { - padding-left: var(--grid-margins-width-10); - padding-right: var(--grid-margins-width-10); - } - - main .section.grid-width-8 { - padding-left: var(--grid-margins-width-8); - padding-right: var(--grid-margins-width-8); - } - - main .section.grid-width-6 { - padding-left: var(--grid-margins-width-6); - padding-right: var(--grid-margins-width-6); - } -} From 8cf294361107e466b718e58fc613bd0caa3a1deb Mon Sep 17 00:00:00 2001 From: Megan Thomas Date: Tue, 14 Nov 2023 10:29:50 -0800 Subject: [PATCH 3/3] Revert "revert grid-width fix. comming from Milo (#155)" This reverts commit 0e9268edb79df08101b7b377137b0b70a6274bf1. --- styles/styles.css | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/styles/styles.css b/styles/styles.css index 113a598..1e8f9d3 100644 --- a/styles/styles.css +++ b/styles/styles.css @@ -67,3 +67,41 @@ div[class*='-up'] .con-block.has-bg.text-block.text-list, .caas-spacing-m { min-height: 500px; } + +/* Section metadata fix */ +main > .section[class*='-up'] > .content { + max-width: initial; + margin: 0; +} + +main .section[class*='grid-width-'] { + padding-left: unset; + padding-right: unset; + display: block; +} + +main .section.two-up, +main .section.three-up, +main .section.four-up, +main .section.five-up { + display: grid; + padding-left: var(--grid-margins-width); + padding-right: var(--grid-margins-width); +} + +@media screen and (min-width: 1200px) { + main .section.grid-width-10 { + padding-left: var(--grid-margins-width-10); + padding-right: var(--grid-margins-width-10); + } + + main .section.grid-width-8 { + padding-left: var(--grid-margins-width-8); + padding-right: var(--grid-margins-width-8); + } + + main .section.grid-width-6 { + padding-left: var(--grid-margins-width-6); + padding-right: var(--grid-margins-width-6); + } +}