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 <img
class={@class} class={@class}
alt={@record.title} alt={@record.title}
loading="lazy"
src={~p"/covers/#{@record.cover_hash}"} src={~p"/covers/#{@record.cover_hash}"}
/> />
""" """
@@ -31,7 +31,6 @@
<img <img
src={MusicLibrary.OnlineStoreTemplates.favicon_url(template)} src={MusicLibrary.OnlineStoreTemplates.favicon_url(template)}
alt={template.name} alt={template.name}
loading="lazy"
/> />
<p class="text-sm font-semibold text-gray-900 dark:text-white"> <p class="text-sm font-semibold text-gray-900 dark:text-white">
{template.name} {template.name}
@@ -90,7 +90,6 @@
<div class="flex min-w-0 justify-between space-x-4 items-center"> <div class="flex min-w-0 justify-between space-x-4 items-center">
<img <img
class="h-12 w-12 rounded-md shadow-sm" class="h-12 w-12 rounded-md shadow-sm"
loading="lazy"
src={album.cover_url} src={album.cover_url}
alt={album.metadata.title} alt={album.metadata.title}
/> />
@@ -272,7 +271,6 @@
<div class="flex min-w-0 justify-between space-x-4 items-center"> <div class="flex min-w-0 justify-between space-x-4 items-center">
<img <img
class="h-12 w-12 rounded-md shadow-sm" class="h-12 w-12 rounded-md shadow-sm"
loading="lazy"
src={track.cover_url} src={track.cover_url}
alt={track.title} alt={track.title}
/> />
@@ -116,7 +116,6 @@ defmodule MusicLibraryWeb.StatsLive.TopAlbums do
> >
<img <img
class="w-12 h-12 rounded-md object-cover" class="w-12 h-12 rounded-md object-cover"
loading="lazy"
src={album.cover_url} src={album.cover_url}
alt={album.album_title} alt={album.album_title}
/> />
@@ -110,7 +110,6 @@ defmodule MusicLibraryWeb.StatsLive.TopArtists do
<img <img
:if={artist.artist_musicbrainz_id != ""} :if={artist.artist_musicbrainz_id != ""}
class="w-12 h-12 rounded-md object-cover" class="w-12 h-12 rounded-md object-cover"
loading="lazy"
src={~p"/artists/#{artist.artist_musicbrainz_id}/image"} src={~p"/artists/#{artist.artist_musicbrainz_id}/image"}
alt={artist.artist_name} alt={artist.artist_name}
onerror={"this.src = '" <> ~p"/images/cover-not-found.png" <> "';"} onerror={"this.src = '" <> ~p"/images/cover-not-found.png" <> "';"}