Skip to content

A live bird collage card for your Home Assistant dashboard.

iOS doesn't seem to support lazy loading

Patrick McGuiref7ce7545abeb
diff --git a/scripts/play.php b/scripts/play.php
index 1e73cbf6..91e6b1c1 100644
--- a/scripts/play.php
+++ b/scripts/play.php
@@ -282,13 +282,13 @@ if(isset($_GET['species'])){ ?>
echo "<tr>
<td class='relative'>$date $time<br>$confidence<br><img style='cursor:pointer' onclick='toggleLock(\"".$filename_formatted."\",\"".$type."\", this)' class=\"copyimage\" width=25 title=\"".$title."\" src=\"".$imageicon."\">
- <a href=\"$filename\"><img loading=\"lazy\" src=\"$filename.png\"></a>
+ <a href=\"$filename\"><img src=\"$filename.png\"></a>
</td>
</tr>";
} else {
echo "<tr>
<td class='relative'>$date $time<br>$confidence<br>
- <a href=\"$filename\"><img loading=\"lazy\" src=\"$filename.png\"></a>
+ <a href=\"$filename\"><img src=\"$filename.png\"></a>
</td>
</tr>";
}