elementor / elementor/elementor
🐞 Image dimensions are not specified in the Image Carousel
- Dominant language
- PHP
- Stars
- 7.1k
- Forks
- 1.6k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 193
Description
## Prerequisites
- [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [x] The issue still exists against the latest stable version of Elementor.
## Description
Test with **GTmetrix** an Elementor site that uses the **Image Carousel Widget**.
One of the recommendations will be to **Specify image dimensions**.

The image carousel widget _does not_ add `width` and `height` attributes to `` tags. See source here: https://github.com/elementor/elementor/blob/master/includes/widgets/image-carousel.php#L692
> Specifying a width and height for all images allows for faster rendering by eliminating the need for unnecessary reflows and repaints.
Source: https://gtmetrix.com/specify-image-dimensions.html
## Steps to reproduce
1. Create an Elementor page.
2. Add the image carousel widget.
3. Save the page.
4. Test the page URL in https://gtmetrix.com/
## Isolating the problem
- [x] This bug happens with only Elementor plugin active (and Elementor Pro).
- [x] This bug happens with a default WordPress theme active.
- [x] I can reproduce this bug consistently using the steps above.
Contributor guide
Assessment
This issue has not been assessed yet.