瀏覽代碼

iframe lazy

amic 1 年之前
父節點
當前提交
256c490ed0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      views/site/index/wide_widget_video.php

+ 1 - 1
views/site/index/wide_widget_video.php

@@ -22,7 +22,7 @@ $key = 'okey';
 <div class="row partner-news"  style="height-min:360px">
     <div class="col-md-8">
         <div class="cont">
-			<iframe width="100%" height="100%" style="aspect-ratio: 16 / 9;" src="https://www.youtube.com/embed/5FNI26lPfgE?autoplay=1" title="Crystal Bay Yacht Club | Lamai | Koh Samui | Thailand | Live Beach Webcam | 2160p 4K" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
+			<iframe width="100%" height="100%" style="aspect-ratio: 16 / 9;" loading="lazy" src="https://www.youtube.com/embed/5FNI26lPfgE?autoplay=1" title="Crystal Bay Yacht Club | Lamai | Koh Samui | Thailand | Live Beach Webcam | 2160p 4K" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
         </div>
     </div>
     <div class="col-md-4" >