• Resolved snippet24

    (@snippet24)


    Hello! by enabling Async JavaScript in the settings pane and with compatibility with Autoptimize, does the plugin apply async to all the scripts it finds? or I have to manually add them to the include with “Scripts to Async”. Doing some tests it seems to add async tags to the Autoptimize js cache script when compatibility mode with Automptimize is enabled, but it doesn’t apply to all scriptsin neither way (excluding jquery).
    Regards!
    Forgot to say I can install the plugin in the live website..

    • This topic was modified 5 years ago by snippet24.
    • This topic was modified 5 years ago by snippet24.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    it should apply to all scripts found, but off course most of those will be in the Autoptimized JS file. but if you have this an a live site, I’ll be happy to take a look at what is (not) happening.

    frank

    Thread Starter snippet24

    (@snippet24)

    the url is: https://www.parqueoncol.cl/
    Regards!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, most of the JS actually is asynced, but 7 files remain;
    * 3 are from embedded youtube iframe, asyncJS cannot async JS from iframes (you could try a plugin that lazyloads youtube)
    * 2 are jquery (one local and one hosted by google) which probably needs to be excluded (although ideally one should have only one jquery)
    * 1 is the googletagmanager; maybe you excluded that? if not, you can try adding it to Autoptimize’s “Async javascript” field in “Extra”.
    * 1 is boostrap.min.js which when looking at your HTML source is appearing twice, once with and once without the async flag. You’ll probably want to find what is loading boostrap twice and remove that 2nd one somehow.

    hope this clarifies,
    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Some questions: How to apply to all scripts by default’ is closed to new replies.