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

    (@optimizingmatters)

    The root cause is a “file not found” which is returned as a HTML reponse, so indeed that cannot be executed. Based on the error-message the issue is with a JS-module, which can be used to intelligently split and load JS files, importing when needed.

    Now I had a look at the HTML source, but I don’t see any <script type="module" being used (at least on the homepage) and AO would not act on those (it only acts on scripts without a type attribute or with type text/javascript) so I’m still pretty much in the dark here.

    Did this happen on a specific page, or on all pages? Did this happen while logged on, or also logged out (anonymous user)? Do you have a staging site where you could leave it broken for me to check?

    Thread Starter Insect Trojan

    (@insecttrojan)

    ok i have it now broke it is happening on all blog posts like
    https://www.insect.gr/10-pragmata-pou-den-gnwrizes-gia-tin-apentomwsi-spitiou/

    Thread Starter Insect Trojan

    (@insecttrojan)

    is about to do with addtoany when i enable optimize js it says me Something is preventing AddToAny from loading. Try disabling content blockers such as ad-blocking add-ons, or try another web browser. i fixed it disable the Cache AddToAny to local and it is working

    • This reply was modified 2 years, 8 months ago by Insect Trojan.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    So addtoany has an option to cache it locally and when you enable that it breaks when autoptimized, correct? hard to say what is going on there, but my guess is they are loading the JS as a module but doing it wrong somehow, causing AO to aggregate/ optimize it anyway.

    you can try re-enabling “cache local” and add addtoany, add-to-any to the JS optimization exclusion list maybe?

    Thread Starter Insect Trojan

    (@insecttrojan)

    ok it not working with exclusion list i will talk to addtoany to thanks a lot for your help

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I’ll close this topic as resolved, but feel free to keep me posted on progress at a2a side! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Failed to load module script’ is closed to new replies.