Exclude from Optimizing or Lazy Loading
You might want to exclude images from being optimized or lazy-loaded and you can acquire this in two ways:
| 🚫 Using Exclusions
|| 🧹 Using Filter
🚫 Using Exclusions
You can do this in Optimole by going into Optimole > Settings > Advanced > Exclusions. Here you can exclude by:
- File Name - eg. file contains “_slide”
- Extension - eg. “SVG”
- Page URL - eg. “home”
For lazyload, you can also exclude by Class Name (eg. “class_to_not_load”) .
This feature can help you fix some compatibility problems with some themes or plugins.
🧹 Using Filter
We have a dedicated doc that provides the necessary code snippet of this filter - Can I disable optimization for a certain image?
We constantly work on improving the plugin but sometimes you might need to use this until a patch or fix is ready.