Remove image lazy loading as it seems to disable image caching

This commit is contained in:
Claudio Ortolina
2025-09-01 17:11:12 +03:00
parent 0564ec95b1
commit 8f9331422a
5 changed files with 0 additions and 6 deletions
@@ -13,7 +13,6 @@ defmodule MusicLibraryWeb.RecordComponents do
<img
class={@class}
alt={@record.title}
loading="lazy"
src={~p"/covers/#{@record.cover_hash}"}
/>
"""
@@ -31,7 +31,6 @@
<img
src={MusicLibrary.OnlineStoreTemplates.favicon_url(template)}
alt={template.name}
loading="lazy"
/>
<p class="text-sm font-semibold text-gray-900 dark:text-white">
{template.name}
@@ -90,7 +90,6 @@
<div class="flex min-w-0 justify-between space-x-4 items-center">
<img
class="h-12 w-12 rounded-md shadow-sm"
loading="lazy"
src={album.cover_url}
alt={album.metadata.title}
/>
@@ -272,7 +271,6 @@
<div class="flex min-w-0 justify-between space-x-4 items-center">
<img
class="h-12 w-12 rounded-md shadow-sm"
loading="lazy"
src={track.cover_url}
alt={track.title}
/>
@@ -116,7 +116,6 @@ defmodule MusicLibraryWeb.StatsLive.TopAlbums do
>
<img
class="w-12 h-12 rounded-md object-cover"
loading="lazy"
src={album.cover_url}
alt={album.album_title}
/>
@@ -110,7 +110,6 @@ defmodule MusicLibraryWeb.StatsLive.TopArtists do
<img
:if={artist.artist_musicbrainz_id != ""}
class="w-12 h-12 rounded-md object-cover"
loading="lazy"
src={~p"/artists/#{artist.artist_musicbrainz_id}/image"}
alt={artist.artist_name}
onerror={"this.src = '" <> ~p"/images/cover-not-found.png" <> "';"}