1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

With async the DOM seems to be less blocked while generating (at least for me), so I guess we should keep it (?) :D

This commit is contained in:
ferferga 2020-05-26 14:05:34 +02:00
parent 3637a11a3b
commit 93148c87ad

View file

@ -18,7 +18,7 @@ import 'css!./style';
// target.classList.remove('blurhashed'); // target.classList.remove('blurhashed');
// } // }
function itemBlurhashing(entry) { async function itemBlurhashing(entry) {
// This intersection ratio ensures that items that are near the borders are also blurhashed, alongside items that are outside the viewport // This intersection ratio ensures that items that are near the borders are also blurhashed, alongside items that are outside the viewport
// if (entry.intersectionRation <= 0.025) // if (entry.intersectionRation <= 0.025)
if (entry.target) { if (entry.target) {