Browse Source

Lazy load homepage iframe

Andrea Franceschini 2 years ago
parent
commit
c6d6825f1f
1 changed files with 2 additions and 2 deletions
  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')?>