Media Tab
Image dimensions, the Sprite Generator, lazy loading, and loading the WebP, AVIF and responsive versions of your images.
Add Image Attributes
See the section called “Add Image Attributes”.
- Enable
-
Adds missing
widthandheightattributes to images, so space is reserved for them and the page doesn't jump. If images appear at the wrong size, resize them to the size they are shown at, or switch this off.
Sprite Generator
Combines small background images into one sprite. Needs CSS optimization on. See the section called “Sprite Generator”.
- Enable
-
Combines selected background images into one sprite image.
- Sprite build direction
-
Whether the images are placed in the sprite one below the other (Vertical) or side by side (Horizontal).
Default: Vertical - Wrap images
-
Starts a new row or column when the sprite would be longer than 2000 pixels.
Default: No - Exclude images from sprite (WordPress: Exclude image from sprite)
-
Images to leave out of the sprite, for example because they display incorrectly in it.
Default: Empty - Include additional images in sprite
-
Extra images to put in the sprite. They are more likely to display incorrectly; use with care.
Default: Empty
Lazy Load Images
Delays loading images and other media until they are about to be seen. See the section called “Lazy Load Images”.
- Enable
-
Loads images below the fold only when the visitor scrolls towards them.
- Lazy Load iframes Pro
-
Also lazy loads iframes, such as embedded maps and videos. A lazy-loaded iframe that has the page's own address, such as a video popup waiting to be opened, is left empty until its script gives it an address, so the page isn't loaded again inside it. To keep such an iframe as it is, list its class or id in Exclude these classes/id.
Default: NoRisk: Low - Use YouTube facade Joomla Pro
-
Replaces embedded YouTube videos with a lightweight preview image that loads the real player only when clicked.
Default: NoRisk: Medium - Audio/Video Pro
-
Also lazy loads
audioandvideoelements below the fold.Default: NoRisk: Low - Background Images Pro
-
Also lazy loads background images that are not part of the critical CSS.
Default: NoRisk: Medium - Exclude these images
-
Images never to lazy load, by address.
Default: EmptyRisk: Low - Exclude these folders Pro
-
Never lazy loads images in these folders.
Default: EmptyRisk: Low - Exclude these classes/id Pro
-
Never lazy loads images with any of these classes or ids.
Default: EmptyRisk: Low - Include hidden images Pro
-
Images above the fold that are hidden when the page opens, such as later slides of a slideshow or icons in drop-down menus, to lazy load anyway.
- Include by folders Pro
-
Lazy loads hidden images above the fold in these folders.
Default: EmptyRisk: Medium - Include by class/id Pro
-
Lazy loads hidden images above the fold with any of these classes or ids.
Default: EmptyRisk: Medium
Load AVIF/WEBP Images Pro
Loading the WebP and AVIF versions of your images that Optimize Images created. See the section called “Load AVIF and WebP Images”.
- Loads AVIF/WEBP Images
-
Serves the AVIF or WebP versions instead of the originals, preferring AVIF when both exist.
- Load WEBP images
-
Serves WebP versions when Loads AVIF/WEBP Images is on.
Default: YesRisk: Low - Load AVIF images
-
Serves AVIF versions when Loads AVIF/WEBP Images is on.
Default: YesRisk: Low - WEBP load policy
-
All browsers (the default) serves WebP to every browser; nearly all support it. Only supported browsers checks each browser first.
Default: All browsersRisk: Low
Load Responsive Images Pro
Loading the smaller versions of your images that Optimize Images created for phones and tablets. See the section called “Load Responsive Images”.
- Load responsive images
-
Serves the smaller versions to smaller screens: adds
srcsetandsizesto images and screen-size rules for background images. On screens up to 576 pixels wide the smallest version is always used, even on high-resolution phones, so images load faster but can look softer on phones; if image quality matters more to you, switch off Smallest image on phones rather than this setting. - Smallest image on phones
-
On screens up to 576 pixels wide, always loads the smallest version of an image, whatever the screen's pixel density: the fastest load on phones, with images that can look soft on high-resolution screens. Switch it off to let the browser choose the version that suits each screen's pixel density: images are sharper on phones and take longer to load. Larger screens always choose this way. Background images in your CSS follow this setting too.
- Replace existing srcset
-
Replaces any
srcsetyour site already adds to images with JCH Optimize's own. WordPress and many templates add one to most images; with this off, those images are left as they are and don't use your responsive images.Default: YesRisk: Medium
On This Page