Use sveltekit-prefetch globally and update template

This commit is contained in:
2022-11-16 12:12:20 +01:00
parent 3aa272016b
commit cac0d434bb
12 changed files with 13 additions and 16 deletions

View File

@@ -126,7 +126,7 @@
<div class="container">
<p class="text-label">Choose a city</p>
<nav>
<ul data-sveltekit-noscroll data-sveltekit-prefetch bind:this={navChooseEl}>
<ul bind:this={navChooseEl} data-sveltekit-noscroll>
{#each shopLocations as { name, slug }}
<li class:is-active={product && slug === product.location.slug}>
<a href="/shop/poster-{slug}" on:click={() => $smoothScroll.scrollTo('#poster', { duration: 2 })}>