• Hi,

    I have found an error when container code is off – then your code generated by plugin leads to the following error:

    Uncaught SyntaxError: Identifier 'console_cmd' has already been declared

    It is caused by fact that you are using line:

    const console_cmd = console.warn || console.log;

    Two times – on <head> and at the beginning of the <body>

    Also when Autoptimize is enabled it can lead to totally stop execution of the scripts on the website.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JS error’ is closed to new replies.