Title: Script error
Last modified: January 2, 2022

---

# Script error

 *  Resolved [kelixirr](https://wordpress.org/support/users/kelixirr/)
 * (@kelixirr)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/script-error-33/)
 * Hi, why is the script not working on the page? I am using the correct code
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fscript-error-33%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/script-error-33/#post-15212302)
 * if you’re referring to the razorpay-integration; jnews seems to be configured
   to deferring that JS (and more);
 *     ```
       <script>var jnewsoption = jnewsoption || {}; jnewsoption.au_scripts = [{"url":"https:\/\/stats.wp.com\/s-202252.js","defer":true},{"url":"https:\/\/checkout.razorpay.com\/v1\/payment-button.js","defer":true},{"url":"https:\/\/stats.wp.com\/e-202252.js","defer":true},{"url":"https:\/\/inkscribblers.com\/wp-content\/cache\/autoptimize\/js\/autoptimize_615aab8cfeeaa399192762c74aa62c6c.js","defer":true}];
       ```
   
 * disable that functionality and razorpay should work (AO does not touch 3rd party
   JS)
 * if you’re referring to another issue: what error do you see and/ or exactly what
   on the page is not working as expected kelixirr ?
 * frank
 *  Thread Starter [kelixirr](https://wordpress.org/support/users/kelixirr/)
 * (@kelixirr)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/script-error-33/#post-15212389)
 * Hi,I am facing issue with the Razorpay only. What should I do?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/script-error-33/#post-15212395)
 * Well, as I wrote; Autoptimize is not causing the issue, it’s your theme that 
   is deferring the razorpay JS, so you’ll have to re-configure your theme options
   really ..
 *  Thread Starter [kelixirr](https://wordpress.org/support/users/kelixirr/)
 * (@kelixirr)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/script-error-33/#post-15212600)
 * Ok, no problem I have solved it differently.

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

The topic ‘Script error’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [kelixirr](https://wordpress.org/support/users/kelixirr/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/script-error-33/#post-15212600)
 * Status: resolved