Title: Uncaught SyntaxError
Last modified: March 16, 2020

---

# Uncaught SyntaxError

 *  [pabsdenn](https://wordpress.org/support/users/pabsdenn/)
 * (@pabsdenn)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-9/)
 * Hi there,
 * i get the following error:
 * Uncaught SyntaxError: missing ) after argument list
 * when the the plugin is activated.
 * It is because of the quotes: document.write( ‘<script async=’async’…
 * Can you help me here?
 * Thanks!

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-9/#post-12550154)
 * add the src-value after `document.write( ‘<script async=’async’` to the exclusion
   list and things should be OK.
 * hope this helps,
    frank
 *  Thread Starter [pabsdenn](https://wordpress.org/support/users/pabsdenn/)
 * (@pabsdenn)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-9/#post-12550259)
 * Hi Frank,
 * thanks for the fast response. Sadly not 🙁
 * I tried wp-polyfill-fetch.min.js, /wp-includes/js/dist/vendor/wp-polyfill-fetch.
   min.js and the full src. Deleted cache of course etc.
 * Still the same issue.
 * Best,
    Dennis
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-9/#post-12551159)
 * Can you share your site’s URL so I can have a look at the HTML source Dennis?

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

The topic ‘Uncaught SyntaxError’ is closed to new replies.

 * ![](https://ps.w.org/async-javascript/assets/icon-128x128.png?rev=1839260)
 * [Async JavaScript](https://wordpress.org/plugins/async-javascript/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/async-javascript/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/async-javascript/)
 * [Active Topics](https://wordpress.org/support/plugin/async-javascript/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/async-javascript/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/async-javascript/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-9/#post-12551159)
 * Status: not resolved