Title: Custom Javascript Is Not Allowed Error
Last modified: August 3, 2022

---

# Custom Javascript Is Not Allowed Error

 *  Resolved [itfox123](https://wordpress.org/support/users/itfox123/)
 * (@itfox123)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-error-2/)
 * There Were Total 22 Web Stories Affected On This issue.
 * Currently, I am Not using Any AMP Plugins.
 * Iam Using Nitropack For Optimizations.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-javascript-is-not-allowed-error-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Luckyna San](https://wordpress.org/support/users/luckynasan/)
 * (@luckynasan)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-error-2/#post-15884923)
 * Hello there, [@itfox123](https://wordpress.org/support/users/itfox123/). Thank
   you for reaching out. This error usually occurs when you are using an optimizing
   plugin that adds custom JavaScript to pages, which is not allowed in Web Stories.
   To confirm this, you can temporarily disable the plugin you mentioned and retest
   your story on the live [AMP test tool](https://search.google.com/test/amp). If
   the test passes validation, then you can suspect there is a conflict with that
   plugin. I recommend reporting the incompatibility in that [plugin support](https://wordpress.org/support/plugin/nitropack/)
   forum as well.
 *  [Luckyna San](https://wordpress.org/support/users/luckynasan/)
 * (@luckynasan)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-error-2/#post-15917902)
 * [@itfox123](https://wordpress.org/support/users/itfox123/) Hiya, we will mark
   this topic as resolved since we haven’t received any further response. Please
   create a new topic if you run into any new issues or questions and we will be
   happy to help. Thank you.

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

The topic ‘Custom Javascript Is Not Allowed Error’ is closed to new replies.

 * ![](https://ps.w.org/web-stories/assets/icon.svg?rev=2386543)
 * [Web Stories](https://wordpress.org/plugins/web-stories/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/web-stories/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/web-stories/)
 * [Active Topics](https://wordpress.org/support/plugin/web-stories/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/web-stories/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/web-stories/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Luckyna San](https://wordpress.org/support/users/luckynasan/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-error-2/#post-15917902)
 * Status: resolved