Title: Excluding (EWWW) inline script
Last modified: July 24, 2021

---

# Excluding (EWWW) inline script

 *  Resolved [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/excluding-ewww-inline-script/)
 * EWWW Image Optimizer inserts a small inline script to detect WebP browser support.
   When Autopimize has “Also aggregate inline JS?” turned on, there’s an error running
   that script, but when inline scripts are left alone, everything’s fine.
 * Currently, the option is off, so the problem cannot be seen, but trust me, it’s
   there.
 * Is there a way to exclude inline scripts from being combined, given they can’t
   be matched by the script?
 * Interestingly, this particular script has the attribute `data-cfasync="false"`.
   Shouldn’t Autoptimize use this as a signal for the script to be left alone?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexcluding-ewww-inline-script%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/excluding-ewww-inline-script/#post-14696144)
 * you can add `ewww_webp_supported` to the comma-separated JS optimization exclusion
   list and all should be fine 🙂
 * frank
 *  Thread Starter [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/excluding-ewww-inline-script/#post-14697779)
 * This works. Thank you.
 * Just to clarify, can scripts be excluded by entering any unique string in them?
   If that’s the case, the description text should be adjusted and the examples 
   should include something that doesn’t end in “.js”.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/excluding-ewww-inline-script/#post-14697961)
 * > can scripts be excluded by entering any unique string in them?
 * yes
 * > If that’s the case, the description text should be adjusted and the examples
   > should include something that doesn’t end in “.js”.
 * I’ll look into it, thanks 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Excluding (EWWW) inline script’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/excluding-ewww-inline-script/#post-14697961)
 * Status: resolved