I installed ShortPixel Adaptive Images but it doesn't seem to work.

If you installed ShortPixel Adaptive Images (SPAI) on your website and it doesn't seem to work then the usual reasons are:

  • the CDN URL is not correct, by default it should be like below, only change it if you know what you're doing:

  • you entered a full URL under Settings > ShortPixel AI > Advanced > Excluded selectors. This field can contain only CSS selectors.

  • you use a caching plugin or your hosting provider uses a caching mechanism. The solution is to flush your cache.
  • there is another plugin or theme that has lazy load activated and this conflicts with SPAI. The solution is to deactivate this functionality in the plugin or theme that use it.
  • our Javascript files are being blocked or unregistered with another optimization plugin. For example, Asset CleanUp can stop such Javascript files. Please check all the optimization plugins to make sure that they don't touch anything related to SPAI.
  • jQuery has been disabled either manually or by another plugin. In this case, SPAI will not work properly. Please make sure it is enabled.

Known conflicts and solutions

LiteSpeed Cache

  • You need to have disabled the option JS Combine. Go to LiteSpeed Cache > Settings > [6] Tuning (you have to have advanced options enabled). There disable JS Combine or (possibly better) exclude ai.min.js from being combined. (thanks to Mads)


  • usually you need to deactivate JetPack as it can conflict with ShortPixel Adaptive Images.


  • In some cases having Hummingbird plugin active will disable jQuery serving. Currently ShortPixel Adaptive Images requires jQuery to function so the solution is to deactivate this plugin.


  • you need to have "Image Optimization" and "Lazy load" turned off

  • and also you may need to have "Aggregate CSS" option turned off

WP Rocket

  • You need to deactivate lazy-load for images
  • And you may also need to deactivate the "Combine JS files"

  • sometimes you just need to exclude ai.min.js file from being concatenated

Swift Performance

  • There's a chance the styles merging is not compatible with SPAI. Please disable it under Settings > Swift Performance > Optimization > Styles > Merge Styles

SG Optimizer

  • First, make sure you have disabled the lazy load option on SG Optimizer > Image Optimization > Lazy Load Images

  • And also, to make sure that your images load as fast as possible, disable the option SG Optimizer > Frontend Optimization > Load Render-blocking JavaScript Files Asynchronously

WP Fastest Cache

  • Make sure that lazy load and Minify JS are disabled from WP Fastest Cache's settings


  • Deactivate the LazyLoading option in Perfmatters' settings

Still need help? Contact Us Contact Us