Use thumbnail/placeholder logic for imagebox
This commit is contained in:
@@ -28,7 +28,8 @@
|
||||
}
|
||||
|
||||
function init() {
|
||||
var imgs = document.querySelectorAll('div.luxtools-gallery img[data-thumb-src]');
|
||||
// Handle both gallery and imagebox thumbnails
|
||||
var imgs = document.querySelectorAll('div.luxtools-gallery img[data-thumb-src], div.luxtools-imagebox img[data-thumb-src]');
|
||||
if (!imgs || !imgs.length) return;
|
||||
|
||||
if ('IntersectionObserver' in window) {
|
||||
|
||||
Reference in New Issue
Block a user