Topic: loading="lazy" to Carousel images

AnnaK premium asked 2 years ago


Hello!

I am using the Card Crousel and am wondering if I can get the images to get the loading="lazy" attribute in them. I tried to put it in the

Or any other way to get them to load lazily?

Anna


Arkadiusz Idzikowski staff answered 2 years ago


Currently, it's not possible because the component expects to have access to the images on the initial load. I added this feature to our tasks and we will check what we can do in this matter.


AnnaK premium commented 2 years ago

Ok thank you. Hope you can notify me if/when you get this possibility.


AnnaK premium commented 2 years ago

Is there any other way not to load the images straight away? At least in mobile, when only one image is visible at a time, it could be good if the carousel wouldn't load all the images beforehand.


Arkadiusz Idzikowski staff commented 2 years ago

We agree that this is a useful feature, but currently, it's not possible to achieve this kind of behavior in the carousel component.


AnnaK premium commented 2 years ago

Hello! Just checking if there possibly has been added a possibility to add the lazy loading to carousel images?


Arkadiusz Idzikowski staff commented 2 years ago

@AnnaK This feature has not been added yet. We are currently working on updates with higher priority.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • User: Premium
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 9.4.0
  • Device: All
  • Browser: All
  • OS: Windows, Android
  • Provided sample code: No
  • Provided link: No