Răsfoiți Sursa

Lazy load homepage iframe

Andrea Franceschini 2 ani în urmă
părinte
comite
c6d6825f1f
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      pages/home.php

+ 2 - 2
pages/home.php

@@ -30,7 +30,7 @@ $twitter_image = 'images/colopic.jpg';
 	}
 </style>
 <div class='embed-container -mb-8'>
-	<iframe src='https://www.youtube.com/embed/videoseries?list=PL70paWUyPRgqhqxG0ShlROn1eSHlekhB_' frameborder='0' allowfullscreen></iframe>
+	<iframe loading="lazy" src='https://www.youtube.com/embed/videoseries?list=PL70paWUyPRgqhqxG0ShlROn1eSHlekhB_' frameborder='0' allowfullscreen></iframe>
 </div>
 
 <h2 class="py-2 text-center">What can I do for you?</h2>
@@ -42,4 +42,4 @@ $twitter_image = 'images/colopic.jpg';
 	<a href="<?=$baseurl?>contact" class="other flex-1"><span>Something else</span></a>
 </div>
 
-<?=i('_footer')?>
+<?=i('_footer')?>