Use ViewTransition API, stop fetching on each load
This commit is contained in:
parent
7afea6a6cc
commit
aa501d5b7b
1 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
const { Title, Description } = Astro.props;
|
||||
import { ViewTransitions } from 'astro:transitions';
|
||||
import { Tooltips } from 'astro-tooltips';
|
||||
---
|
||||
|
||||
<head>
|
||||
|
@ -28,4 +30,10 @@ const { Title, Description } = Astro.props;
|
|||
/>
|
||||
<script type="module" src="/@shoelace-style/shoelace/cdn/shoelace.js"
|
||||
></script>
|
||||
|
||||
<!-- ViewTransition API -->
|
||||
<ViewTransitions />
|
||||
|
||||
<!-- Tooltip -->
|
||||
<Tooltips interactive={false} delay={[15, 14000]} />
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue