Merge pull request #2038 from cvium/fix_lazyloader_observer_for_collections

Create 1 lazyloader observer per collection type
This commit is contained in:
dkanada 2020-11-03 21:30:58 +09:00 committed by GitHub
commit cbe57f28ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1727,7 +1727,7 @@ function renderCollectionItemType(page, parentItem, type, items) {
html += '</div>';
const collectionItems = page.querySelector('.collectionItems');
collectionItems.insertAdjacentHTML('beforeend', html);
imageLoader.lazyChildren(collectionItems);
imageLoader.lazyChildren(collectionItems.lastChild);
}
function renderMusicVideos(page, item, user) {