dylanebert HF staff commited on
Commit
0965b80
1 Parent(s): 5412da9

lazy load model detail images

Browse files
Files changed (1) hide show
  1. src/routes/ModelDetails.svelte +1 -1
src/routes/ModelDetails.svelte CHANGED
@@ -102,7 +102,7 @@
102
  <div class="grid">
103
  {#each scenes as scene}
104
  <button class="grid-item" on:click={() => onSceneClick(scene)}>
105
- <img src={scene.thumbnail} alt={scene.name} class="thumbnail" />
106
  <div class="title">{scene.name.length > 16 ? `${scene.name.slice(0, 16)}...` : scene.name}</div>
107
  </button>
108
  {/each}
 
102
  <div class="grid">
103
  {#each scenes as scene}
104
  <button class="grid-item" on:click={() => onSceneClick(scene)}>
105
+ <img loading="lazy" src={scene.thumbnail} alt={scene.name} class="thumbnail" />
106
  <div class="title">{scene.name.length > 16 ? `${scene.name.slice(0, 16)}...` : scene.name}</div>
107
  </button>
108
  {/each}