feat: add img tag with loading attribute for lazy loading

This commit is contained in:
hawtimzhang 2022-05-02 00:47:42 +08:00
parent 107bf53a39
commit fab099c6fb
17 changed files with 46 additions and 23 deletions

View file

@ -7,7 +7,7 @@
@mouseleave="hoverVideoID = 0"
@click="goToMv(getID(mv))"
>
<img :src="getUrl(mv)" />
<img :src="getUrl(mv)" loading="lazy" />
<transition name="fade">
<div
v-show="hoverVideoID === getID(mv)"