Skip to content

Commit

Permalink
Push first search off til after CWV
Browse files Browse the repository at this point in the history
  • Loading branch information
bstopp committed Apr 30, 2024
1 parent c526aa5 commit b11e1da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/property-search-results/property-search-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ export default async function decorate(block) {
}
updateFilters(search);
updateForm(search);
doSearch(search);
observe(block);

window.addEventListener('popstate', async () => {
Expand All @@ -260,5 +259,6 @@ export default async function decorate(block) {
const mod = await import(`${window.hlx.codeBasePath}/blocks/property-search-results/map.js`);
initMap = mod.initMap;
initMap(block, search);
doSearch(search);
}, 3000);
}

0 comments on commit b11e1da

Please sign in to comment.