{"id":785,"date":"2024-05-07T11:43:18","date_gmt":"2024-05-07T11:43:18","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/can-i-use-shortpixel-adaptive-images-with-autoptimize\/"},"modified":"2025-08-27T08:43:16","modified_gmt":"2025-08-27T08:43:16","password":"","slug":"can-i-use-shortpixel-adaptive-images-with-autoptimize","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/can-i-use-shortpixel-adaptive-images-with-autoptimize\/","title":{"rendered":"Can I use ShortPixel Adaptive Images with Autoptimize?"},"content":{"rendered":"<p>\n\tYes,<br \/>\n\t<a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-adaptive-images\/\" rel=\"noopener\">ShortPixel Adaptive Images<\/a> (SPAI) works well with Autoptimize on most WordPress installations, as long as you do the following:<\/p>\n<ol>\n<li><strong>Disable<\/strong> the options <strong>Optimize Images<\/strong> and <strong>Lazy-load images <\/strong>on Autoptimize&#8217;s settings.<\/li>\n<p>\t\t<img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-lTwCFTnC0f.png\"><\/p>\n<li>If you are aggregating the JS files, you may need to<strong> exclude the script &#8220;ai.min.js&#8221; <\/strong>from optimization to prevent possible conflicts.<br \/>\n\t<img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-Q1RmAQTzdx.jpg\" style=\"height: auto; vertical-align: middle; border-color: rgb(214, 214, 214); color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, sans-serif;\"><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Yes, ShortPixel Adaptive Images (SPAI) works well with Autoptimize on most WordPress installations, as long as you do the following: Disable the options Optimize Images and Lazy-load images on Autoptimize&#8217;s settings. If you are aggregating the JS files, you may need to exclude the script &#8220;ai.min.js&#8221; from optimization to prevent possible conflicts.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[35],"glossaries":[],"doc_tag":[],"class_list":["post-785","docs","type-docs","status-publish","hentry","doc_category-shortpixel-adaptive-images"],"blocksy_meta":[],"year_month":"2026-04","word_count":54,"total_views":"1077","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin_mdli53m5","author_url":"https:\/\/kb.shortpixel.com\/author\/admin_mdli53m5\/"},"doc_category_info":[{"term_name":"ShortPixel Adaptive Images","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/shortpixel-adaptive-images\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=785"}],"version-history":[{"count":1,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/785\/revisions"}],"predecessor-version":[{"id":2485,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/785\/revisions\/2485"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=785"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=785"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=785"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}