Support » Plugin: Fast Velocity Minify » Minify JS Error

  • Resolved sprockettechweb

    (@sprockettechweb)


    I’m getting the error “SyntaxError: Unexpected token ‘}’. Expected a statement as the body of an if block. footer-970248e2.min.js” which is preventing the header video from loading and thus the page. If I disable minification on JS files, I no longer get the error and everything loads fine.

Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    Can you please refer to our faqs:
    https://wordpress.org/plugins/fast-velocity-minify/faq/

    If disabling minification (not js processing completely) fixes it, you are doing double minification somewhere OR you are merging some JS file that has been edited and minified previously, without appending min.js to the filename.

    Please make sure nothing else (theme, plugins, cloudflare, etc) is doing minification, purge your caches and try again.

    You can also try to use the ignore list to bypass that file, since that js file should still work fine if not merged.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.