Lazy-load place photos

Only preload photos in view as well as the next one(s), not all of them
This commit is contained in:
2026-04-22 12:02:44 +04:00
parent b83a16bf13
commit d1d179bb93
3 changed files with 60 additions and 15 deletions

View File

@@ -43,7 +43,7 @@ module('Integration | Component | place-photos-carousel', function (hooks) {
assert.dom('.carousel-slide').exists({ count: 1 }, 'it renders one slide');
assert
.dom('img.place-header-photo')
.hasAttribute('src', 'photo1.jpg', 'it renders the photo');
.hasAttribute('data-src', 'photo1.jpg', 'it sets the data-src correctly');
// There should be no chevrons when there's only 1 photo
assert