Merge pull request #2038 from cvium/fix_lazyloader_observer_for_collections
Create 1 lazyloader observer per collection type
This commit is contained in:
commit
cbe57f28ff
1 changed files with 1 additions and 1 deletions
|
@ -1727,7 +1727,7 @@ function renderCollectionItemType(page, parentItem, type, items) {
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
const collectionItems = page.querySelector('.collectionItems');
|
const collectionItems = page.querySelector('.collectionItems');
|
||||||
collectionItems.insertAdjacentHTML('beforeend', html);
|
collectionItems.insertAdjacentHTML('beforeend', html);
|
||||||
imageLoader.lazyChildren(collectionItems);
|
imageLoader.lazyChildren(collectionItems.lastChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderMusicVideos(page, item, user) {
|
function renderMusicVideos(page, item, user) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue