Make webp default format for images

This commit is contained in:
DariusIII
2026-07-16 15:57:20 +02:00
parent 17be0e11d2
commit b27fb8d86b
60 changed files with 1154 additions and 1136 deletions
@@ -6,7 +6,7 @@ import Alpine from '@alpinejs/csp';
const prefetchedUrls = new Set();
function buildImageUrl(guid, type) {
return '/covers/' + (type || 'preview') + '/' + guid + '_thumb.jpg';
return '/covers/' + (type || 'preview') + '/' + guid + '_thumb.webp';
}
function prefetchImage(guid, type) {