We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe6d23c commit aae022fCopy full SHA for aae022f
1 file changed
src/block/carousel/frontend-carousel.js
@@ -44,6 +44,13 @@ class _StackableCarousel {
44
this.liveregion.setAttribute( 'class', 'liveregion stk--hidden' )
45
this.wrapper.appendChild( this.liveregion )
46
47
+ // Get all images and set loading to eager to make the browser
48
+ // calculate the grid height correctly
49
+ const images = this.el.querySelectorAll( 'img' )
50
+ images.forEach( image => {
51
+ image.loading = 'eager'
52
+ } )
53
+
54
this.fixChildrenAccessibility() // This needs to be first before infinte scrolling clones slides.
55
this.initProperties()
56
}
0 commit comments