Chapter 11. Settings Reference

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 width and height attributes 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.

Default: No
Risk: Medium

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.

Default: No
Risk: Medium
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.

Default: No
Risk: Low
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: No
Risk: Low
Use YouTube facade Joomla Pro

Replaces embedded YouTube videos with a lightweight preview image that loads the real player only when clicked.

Default: No
Risk: Medium
Audio/Video Pro

Also lazy loads audio and video elements below the fold.

Default: No
Risk: Low
Background Images Pro

Also lazy loads background images that are not part of the critical CSS.

Default: No
Risk: Medium
Exclude these images

Images never to lazy load, by address.

Default: Empty
Risk: Low
Exclude these folders Pro

Never lazy loads images in these folders.

Default: Empty
Risk: Low
Exclude these classes/id Pro

Never lazy loads images with any of these classes or ids.

Default: Empty
Risk: 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.

Default: Empty
Risk: Medium
Include by folders Pro

Lazy loads hidden images above the fold in these folders.

Default: Empty
Risk: Medium
Include by class/id Pro

Lazy loads hidden images above the fold with any of these classes or ids.

Default: Empty
Risk: 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: Yes
Risk: Low
Load AVIF images

Serves AVIF versions when Loads AVIF/WEBP Images is on.

Default: Yes
Risk: 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 browsers
Risk: 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 srcset and sizes to 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.

Default: No
Risk: Medium
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.

Default: Yes
Risk: Low
Replace existing srcset

Replaces any srcset your 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: Yes
Risk: Medium