From ff2c0950b7236b6c6120ac1437dd864c17a6b57d Mon Sep 17 00:00:00 2001 From: Ricardo Date: Wed, 4 Feb 2026 15:12:17 +0100 Subject: [PATCH] perf: skip eleventy-img processing for external cover art MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add eleventy:ignore to all Funkwhale/Last.fm album cover tags. These are external URLs served from their origin servers — downloading, converting to webp, and caching them locally was causing 4094 image processing calls per build with no benefit. Co-Authored-By: Claude Opus 4.5 --- _includes/components/funkwhale-stats-content.njk | 2 +- _includes/components/sidebar.njk | 2 +- funkwhale.njk | 5 +++-- listening.njk | 12 ++++++------ 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/_includes/components/funkwhale-stats-content.njk b/_includes/components/funkwhale-stats-content.njk index 52deeb7..1f08490 100644 --- a/_includes/components/funkwhale-stats-content.njk +++ b/_includes/components/funkwhale-stats-content.njk @@ -44,7 +44,7 @@ {% for album in topAlbums | head(5) %}
{% if album.coverUrl %} - + {% else %}
diff --git a/_includes/components/sidebar.njk b/_includes/components/sidebar.njk index f0818b2..9ae2312 100644 --- a/_includes/components/sidebar.njk +++ b/_includes/components/sidebar.njk @@ -225,7 +225,7 @@
{% if funkwhaleActivity.nowPlaying.coverUrl %} - + {% endif %}

diff --git a/funkwhale.njk b/funkwhale.njk index b2286e0..4ff707a 100644 --- a/funkwhale.njk +++ b/funkwhale.njk @@ -26,6 +26,7 @@ withSidebar: true alt="" class="w-20 h-20 sm:w-24 sm:h-24 rounded-lg shadow-lg object-cover flex-shrink-0" loading="lazy" + eleventy:ignore > {% else %}

@@ -186,7 +187,7 @@ withSidebar: true {% for listening in funkwhaleActivity.listenings | head(15) %}
{% if listening.coverUrl %} - + {% else %}
@@ -236,7 +237,7 @@ withSidebar: true {% for favorite in funkwhaleActivity.favorites | head(10) %}
{% if favorite.coverUrl %} - + {% else %}
diff --git a/listening.njk b/listening.njk index 0bbcb0b..2f9cfc4 100644 --- a/listening.njk +++ b/listening.njk @@ -62,7 +62,7 @@ withSidebar: true
{% if fwNowPlaying.coverUrl %} - + {% else %}
@@ -114,7 +114,7 @@ withSidebar: true
{% if lfmNowPlaying.coverUrl %} - + {% else %}
@@ -272,7 +272,7 @@ withSidebar: true {% for listening in funkwhaleActivity.listenings | head(10) %}
{% if listening.coverUrl %} - + {% else %}
@@ -307,7 +307,7 @@ withSidebar: true {% for scrobble in lastfmActivity.scrobbles | head(10) %}
{% if scrobble.coverUrl %} - + {% else %}
@@ -360,7 +360,7 @@ withSidebar: true {% for track in lastfmActivity.loved | head(10) %}
{% if track.coverUrl %} - + {% else %}
@@ -402,7 +402,7 @@ withSidebar: true {% for favorite in funkwhaleActivity.favorites | head(10) %}
{% if favorite.coverUrl %} - + {% else %}