mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
set fetch priority for thumbnails to low instead
This commit is contained in:
parent
78de02123e
commit
befdc06a42
|
|
@ -691,7 +691,6 @@ window.baguetteBox = (function () {
|
|||
for (var i = 0, fullImage; i < gallery.length; i++) {
|
||||
fullImage = mknod('div', 'baguette-img-' + i);
|
||||
fullImage.className = 'full-image';
|
||||
fullImage.fetchPriority = 'high';
|
||||
imagesElements.push(fullImage);
|
||||
|
||||
imagesFiguresIds.push('bbox-figure-' + i);
|
||||
|
|
|
|||
|
|
@ -6602,7 +6602,7 @@ window.thegrid = (function () {
|
|||
(isdir || ext == 'unk' || ext.startsWith('/') ? '' :
|
||||
'<span class="th_ext" style="font-size: ' + (r.sz / 5) +'em; font-size:calc((var(--grid-sz) - 2.5em) / 3 * ' +
|
||||
(ext.length > 3 ? 1 / (3 + ext.length * .4) * 3 : 1) + ')"><span class="inner">' + ext + '</span></span>') +
|
||||
'<img loading="lazy" onload="th_onload(this)" src="' +
|
||||
'<img loading="lazy" fetchPriority="low" onload="th_onload(this)" src="' +
|
||||
ihref + '" /></div><span class="' + ac + '">' + ao.innerHTML + '</span></a>');
|
||||
}
|
||||
ggrid.innerHTML = html.join('\n');
|
||||
|
|
|
|||
Loading…
Reference in a new issue