From 62a335ea9a172ea3bbba58fde19957ed2e18f508 Mon Sep 17 00:00:00 2001 From: Laptop Date: Thu, 13 Feb 2025 22:43:33 +0200 Subject: [PATCH] lazy image loading on track page :D to maybe prioritize audio when tab not focused --- templates/playlist.templ | 4 ++-- templates/track.templ | 6 +++--- templates/user.templ | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/playlist.templ b/templates/playlist.templ index 87e9808..3fbb3c6 100644 --- a/templates/playlist.templ +++ b/templates/playlist.templ @@ -23,9 +23,9 @@ func playlist(t sc.Track, p sc.Playlist) string { templ PlaylistItem(playlist *sc.Playlist, showUsername bool) { if playlist.Artwork != "" { - + } else { - + }

{ playlist.Title }

diff --git a/templates/track.templ b/templates/track.templ index f2d291c..41d3f9f 100644 --- a/templates/track.templ +++ b/templates/track.templ @@ -131,9 +131,9 @@ templ TrackItem(track *sc.Track, showUsername bool, overrideHref string) { }}
if track.Artwork != "" { - + } else { - + }