Title: Custom Java Script Not Allowed For AMP
Last modified: August 6, 2020

---

# Custom Java Script Not Allowed For AMP

 *  Resolved [savefreestuff](https://wordpress.org/support/users/savefreestuff/)
 * (@savefreestuff)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-java-script-not-allowed-for-amp/)
 * Today, Google WebMaster (Google Search Console) send me error notification “Custom
   Java Script Not Allowed For AMP”
 * I did a Google search and found the result that I need to install W3 Total Cache
   plugin and then install its AMP extension. So my problem will be solved but I
   hosted my website into managed WordPress hosting by namecheap, Which do not allow
   this plugin (W3 Total Cache) to be installed.
 * 30 posts of my website effected by this error. So please explain me how I can
   fix this error because this error is on AMP pages.
    -  This topic was modified 5 years, 10 months ago by [savefreestuff](https://wordpress.org/support/users/savefreestuff/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-java-script-not-allowed-for-amp%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [savefreestuff](https://wordpress.org/support/users/savefreestuff/)
 * (@savefreestuff)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-java-script-not-allowed-for-amp/#post-13217944)
 * 30 posts of my website effected by this error
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-java-script-not-allowed-for-amp/#post-13220601)
 * We didn’t find any Custom Java Script issues on your page. It’s a valid AMP page.
   
   Like this: [https://prnt.sc/tviatu](https://prnt.sc/tviatu)
 * Can you please tell me are you still facing the issue? If you are facing please
   share the exact URL with us.
 *  Thread Starter [savefreestuff](https://wordpress.org/support/users/savefreestuff/)
 * (@savefreestuff)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-java-script-not-allowed-for-amp/#post-13220716)
 * I installed a plugin to remove Defer parsing of JavaScript. after setting up 
   the plugin Defer parsing of JavaScript successfully resolve but google search
   console give me a “Custom Java Script not allowed” error.
 * But when I removed this plugin, Google started validating my pages whereas before
   Google did not validate my pages.
 * All pages are currently validated. If validation fails or there is a problem,
   I will contact you again.
 * Thanks for your quick response.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-java-script-not-allowed-for-amp/#post-13220859)
 * Sure we will help you any time. If you are facing any issues please contact us.

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

The topic ‘Custom Java Script Not Allowed For AMP’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/custom-java-script-not-allowed-for-amp/#post-13220859)
 * Status: resolved