Support » Plugin: Autoptimize » What does “Optimize JavaScript Code?” do?

  • Resolved Debesyla

    (@debesyla)


    Hi, I am very confused. Usually caching and minimizing, defering, etc. plugins break websites, but Autoptimize somehow fixed it..? 🙂

    Basically there is a website, it has Autoptimize + only setting on is “Optimize JavaScript Code?”. What does this setting do?

    I am trying to figure out what did it do to website .js files so that those magically started to work. Caching doesn’t seem like what’s happening. Is Autoptimize somehow changing .js load order? Minifying everything? Something else? I can’t see anything obvious in browser Inspect window. Could you maybe direct me to a plugin file that is responsible for this setting so I could just poke around and figure out it? 😀

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

    (@optimizingmatters)

    if the only setting is “optimize js code” and not any of the sub-option, the only thing that is done is minfiying unminified JS (based on filename).

    hope this clarifies,
    frank

    Thread Starter Debesyla

    (@debesyla)

    Hmm! So Autoptimize only does this?

    1) Finds .js (not .min.js) -> minifies it -> places it back in same place;
    2) Ignores inline scripts and doesn’t do anything with those?

    In past few hours I have tried a dozen of other optimisation plugins (litespeed, wprocket, etc…) with various minifying settings, but I can’t figure out what Autoptimize does differently 😀

    …Did anyone already tell that Autoptimize somehow fixes another plugin (Translatepress) bug? Because I guess this would be first time for you to hear that. Autoptimize is magical, somehow 🙂

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    if only “optimize JS” is active and none of the sub-options (e.g. “aggregate” “don’t aggregate but defer”) then indeed only .js files that don’t have min. in the filename are minified.

    i have heard about AO “fixing” things once in a while (for different reasons and always depending on what the configuration is), but it’s not that common 🙂

    Thread Starter Debesyla

    (@debesyla)

    Thank you very much for your answers! 🙂

    Thread Starter Debesyla

    (@debesyla)

    (Oops, forgot to mark as resolved.)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘What does “Optimize JavaScript Code?” do?’ is closed to new replies.