• Resolved bobdobbs

    (@bobdobbs)


    I’m developing sites locally, so I can show code.

    Across a couple of local sites, I get this error in console:
    ‘Uncaught SyntaxError: Unexpected token <‘.
    Console points to the first line of the html document produced by wordpress: the html doctype.

    The common element seemed to be the deferred scripts plugin.

    If I disable the plugin, the error goes away.

    Other then this, the plugin functions as expected: scripts still load from the footer using LAB, and run as expected.

    https://www.ads-software.com/plugins/wp-deferred-javascripts/

Viewing 1 replies (of 1 total)
  • Plugin Author Daniel Roch

    (@confridin)

    Hi,

    It’s not an issue. One of the javascripts returns a 404 error. The plugin tries to handle it and throw the error in console.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught SyntaxError: Unexpected token’ is closed to new replies.