console.log(`GIFS RENDERED IN ${group}:`,players.length,players.filter(p=>!p.animation.paused).length,this.lazyLoadQueue.intersector.getVisible().length);
}
},.25e3);
},.25e3);*/
lettimeout=0;
// memory leak
@ -51,12 +51,14 @@ export default class GifsMasonry {
@@ -51,12 +51,14 @@ export default class GifsMasonry {
});
}
privateprocessVisibleDiv=(div: HTMLElement)=>{
processVisibleDiv=(div: HTMLElement)=>{
constvideo=div.querySelector('video');
if(video){
return;
}
//console.log('processVisibleDiv');
constload=()=>{
constdocID=div.dataset.docID;
constdoc=appDocsManager.getDoc(docID);
@ -110,7 +112,7 @@ export default class GifsMasonry {
@@ -110,7 +112,7 @@ export default class GifsMasonry {