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

    (@optimizingmatters)

    And do you also get the 404 when Autoptimize is disabled by adding ?ao_noptimize=1 to the URL?

    Thread Starter techmgmt

    (@techmgmt)

    Yes and it exists. It’s a live chat JS.

    const wplc_assets_guid = 'cgk5myJ9Xxcspsjz';
    						const callusElements = document.getElementsByTagName("call-us");
    						Array.prototype.forEach.call(callusElements, function (callus) {
    							callus.setAttribute('assets-guid', wplc_assets_guid);
    						});
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    But if the file also gives a 404 when Autoptimize is disabled (by the parameter in the URL), then I’m afraid nothing in AO’s configuration can help here .. :-/

    Have you reached out to the developer of the chat JS?

    Thread Starter techmgmt

    (@techmgmt)

    I don’t get a 404 when AO is disabled, only when it is enabled.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    in that case I misunderstood your previous response to my question regarding getting the 404 when Autoptimize is disabled by adding ?ao_noptimize=1 to the URL ??

    OK, do you still get the error when “aggregate JS” or even “optimize JS” in Autoptimize is off?

    Thread Starter techmgmt

    (@techmgmt)

    The only enabled option was Optimize JS Code. I’ve disabled that and the error still occurs. I did not delete cache when saving that change though, is that required?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    deleting AO’s cache should not be needed, but you might have a page cache that is preventing you from seeing the change?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    any news techmgmt ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No feedback so I assume this got resolved techmgmt ? Feel free to follow up if you still encounter issues!

    have a nice day!
    frank

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘404 Error on JS File’ is closed to new replies.