• Resolved Gal Baras

    (@galbaras)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    you can add ewww_webp_supported to the comma-separated JS optimization exclusion list and all should be fine 🙂

    frank

    Thread Starter Gal Baras

    (@galbaras)

    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

    (@optimizingmatters)

    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.