docs: remove prefetch behavior

This commit is contained in:
Eric Liu 2020-10-14 15:39:59 -07:00
commit f59ccf77ff

View file

@ -1,7 +1,3 @@
<script context="module">
const fetched = new Set();
</script>
<script>
import { isActive, url, layout, beforeUrlChange } from "@sveltech/routify";
import {
@ -162,17 +158,6 @@
}
</style>
<svelte:body
on:mouseover="{async (e) => {
if (process.env.NODE_ENV === 'development') return;
if (!e.target.href || !e.target
.getAttribute('class')
.includes('bx--side-nav__link')) return;
if (fetched.has(e.target.href)) return;
fetched.add(e.target.href);
await fetch(e.target.href);
}}" />
<svelte:window bind:innerWidth />
<Theme persist>