瀏覽代碼

Add lazy loading to images in examples page

Marco Fugaro 5 年之前
父節點
當前提交
57a8150346
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/index.html

+ 1 - 1
examples/index.html

@@ -169,7 +169,7 @@
 				'<div class="card">',
 				'	<a href="' + file + '.html" target="viewer">',
 				'		<div class="cover">',
-				'			<img src="screenshots/' + file + '.png" />',
+				'			<img src="screenshots/' + file + '.png" loading="lazy" />',
 				'		</div>',
 				'		<div class="title">' + getName( file ) + '</div>',
 				'	</a>',