• This javascript comment in WordPress Core is causing problems once compressed. JS Console error “Uncaught SyntaxError: Unexpected end of input”.

    “// The customizer requires postMessage and CORS (if the site is cross domain)”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniyal Ahmed (a11n)

    (@daniyalahmedk)

    Hello
    Can you please provide list of plugin you have? So would help to find conflicting one

    Thanks!

    Thread Starter dylanfitzger

    (@dylanfitzger)

    Hi,

    The conflict is not with a plugin, it is with WordPress Core. No other plugins are installed. WordPress Core has an inline comment at line 3030 of wp-includes/theme.php. When minified, any HTML after this comment is treated like a comment. I think you need to strip out inline comments when minifying.

    Reported to Core:
    https://core.trac.wordpress.org/ticket/39482

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘JavaScript Comment Errors’ is closed to new replies.