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