feat: prefetching
This commit is contained in:
parent
d8e019cc95
commit
afe4d514ed
13 changed files with 125 additions and 121 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue