feat: prefetching

This commit is contained in:
Cory Dransfeldt 2024-11-24 14:00:59 -08:00
parent d8e019cc95
commit afe4d514ed
No known key found for this signature in database
13 changed files with 125 additions and 121 deletions

View file

@ -10,7 +10,7 @@ const { globals } = await fetchGlobalData(Astro);
data.slice(0, 10).map((item) => (
<div class="item">
<div class="meta">
<a href={item.chart.url}>
<a href={item.chart.url} data-astro-prefetch>
<img
srcset={`
${globals.cdn_url}${item.chart.image}?class=w50&type=webp 50w,