Title: JavaScript files should be free from syntax errors.
Last modified: March 7, 2022

---

# JavaScript files should be free from syntax errors.

 *  Resolved [cybernok](https://wordpress.org/support/users/cybernok/)
 * (@cybernok)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/javascript-files-should-be-free-from-syntax-errors/)
 * When i test my home page with checkbot it comes up with syntax errors coming 
   from autoptimize:
 * Line 60, Column 10030, Unexpected token =
 * [https://thailand-divers.com/wp-content/cache/autoptimize/js/autoptimize_47ea86f7b4a607d666d9d7815ac57a75.js](https://thailand-divers.com/wp-content/cache/autoptimize/js/autoptimize_47ea86f7b4a607d666d9d7815ac57a75.js)
 * I have the same problem on 3 other javascripts.
 * Any advice would be gratefully appreciated.
 * Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-files-should-be-free-from-syntax-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years ago](https://wordpress.org/support/topic/javascript-files-should-be-free-from-syntax-errors/#post-15440672)
 * Autoptimize merely combines the JavaScript from WordPress, theme & plugins, but
   try running the test against `https://thailand-divers.com/?ao_noptimize=1` (or
   any URL with `?ao_noptimize=1` added to it) to see which of the original JS might
   have issues cybernok
 * hope this helps,
    frank

Viewing 1 replies (of 1 total)

The topic ‘JavaScript files should be free from syntax errors.’ is closed to new
replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/javascript-files-should-be-free-from-syntax-errors/#post-15440672)
 * Status: resolved