From 0268be9970c56594021697c21765454f3e25cc5f Mon Sep 17 00:00:00 2001 From: Bryan Stopp Date: Wed, 29 Nov 2023 16:18:42 -0600 Subject: [PATCH 1/2] Improve the performance of the hero search form. --- blocks/hero/search/home.css | 7 ++++++- blocks/hero/search/home.js | 15 ++++++++------- .../shared/search-countries/search-countries.js | 2 +- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/blocks/hero/search/home.css b/blocks/hero/search/home.css index 59117177..7dbedee2 100644 --- a/blocks/hero/search/home.css +++ b/blocks/hero/search/home.css @@ -18,6 +18,11 @@ display: none; } +.hero.block .content .homes .search-bar .search-country-select-parent { + position: relative; + width: 80px; +} + .hero.block .content .homes .search-bar .suggester-input { flex: 1; } @@ -45,7 +50,7 @@ justify-content: center; } -.hero.block .content .homes .search-bar .filter span.icon svg { +.hero.block .content .homes .search-bar .filter span.icon img { height: 22px; width: 22px; color: var(--black); diff --git a/blocks/hero/search/home.js b/blocks/hero/search/home.js index c73af908..7049d910 100644 --- a/blocks/hero/search/home.js +++ b/blocks/hero/search/home.js @@ -5,7 +5,7 @@ import { function observeForm() { const script = document.createElement('script'); - script.type = 'text/partytown'; + script.type = 'module'; script.innerHTML = ` const script = document.createElement('script'); script.type = 'module'; @@ -76,6 +76,7 @@ async function buildForm() {