Title: Custom javascript and AMP component &#8216;script&#8217; tag
Last modified: February 17, 2023

---

# Custom javascript and AMP component ‘script’ tag

 *  Resolved [occupygh](https://wordpress.org/support/users/occupygh/)
 * (@occupygh)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/)
 * Hello,
 * My pages have been affected by ‘Custom javascript and AMP component ‘script’ 
   tag’ on Google. Can you please take a look at my site and help me with fixing
   it. Thanks
 * Issues:
 * 1) A tag on this page requires an AMP component ‘script’ tag, which is missing.
 * 2) Custom javascript is not allowed
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-javascript-and-amp-component-script-tag%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16479508)
 * Can you please share with us the exported AMP optional panel settings once? So
   that we will import it at our end and check the issue once and get back to you
   accordingly to resolve it.
 * 
   Here is the reference tutorial of it: [https://ampforwp.com/tutorials/article/how-to-import-and-export-the-amp-option-panel-settings/](https://ampforwp.com/tutorials/article/how-to-import-and-export-the-amp-option-panel-settings/)
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16479510)
 * Also can you please let me know, Are you using Jetpack boost plugin? If yes, 
   Please kindly do let us know, So that we will assist you to fix the issue ASAP!
 *  Thread Starter [occupygh](https://wordpress.org/support/users/occupygh/)
 * (@occupygh)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16480541)
 * Hello,
 * Thanks for the swift responds.
 * This is the link to the export: [https://www.mediafire.com/file/2kvswuui9e82z1p/redux_options_redux_builder_amp_backup_17-02-2023.json/file](https://www.mediafire.com/file/2kvswuui9e82z1p/redux_options_redux_builder_amp_backup_17-02-2023.json/file)
 * And to answer your second question, yes we have Jetpack boost plugin to boost
   the speed of our website.
 * Regards.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16480800)
 * Thank you so much for the information. There is an issue with jetpack, We are
   working on it and we have added it to the next milestone 1.0.81. Once it gets
   fixed then we will let you know back the response.
 * Here is the reference GitHub link: [https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/5391](https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/5391)
 *  Thread Starter [occupygh](https://wordpress.org/support/users/occupygh/)
 * (@occupygh)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16482352)
 * Thanks. I disabled the Jetpack boost plugin and everything seems to be fine. 
   Unfortunately, my site is slow without it. I hope it gets fixed in the next milestone.
 * Thanks again.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16482692)
 * We are sorry for the inconvenience. We are working on it and fix it as early 
   as possible. Once it gets done then we will get back to you with an update.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16509127)
 * We fixed the issue in our latest update 1.0.81. Kindly can you please update 
   the AMPforWP plugin to the latest version and let us know back if you face the
   issue or not?
 *  Thread Starter [occupygh](https://wordpress.org/support/users/occupygh/)
 * (@occupygh)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16511907)
 * Hello, I just updated it. I will keep you inform if anything turns up.
 * I am validating the said amps at the moment.
 * Thanks for the update. Everything seems to be fine at the moment.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16512354)
 * Sure, Kindly do let us know if you need any assistance. So that we will help 
   you to fix them.
 *  Thread Starter [occupygh](https://wordpress.org/support/users/occupygh/)
 * (@occupygh)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16559071)
 * Hello, I reported of my site having : “Custom JavaScript is not allowed”, it 
   was fixed in an update from amp4WP but unfortunately, it is back again.
 * Can you please take a look at my site to try help me fix it.
 * Thanks
 * Site: occupygh.net
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16561694)
 * Hi, Sorry for the inconvenience. We have inspected the issue and it seems its
   not due to AMPforWP, The script is getting added non-AMP also it seenms. We have
   tested thoroughly and it seems strange. And also its looking lie the script is
   getting added by some browser extensions might be. Can you please kindly check
   once on other devices if possible? The error is not showing on all devices in
   our tests.
 *  Thread Starter [occupygh](https://wordpress.org/support/users/occupygh/)
 * (@occupygh)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16563040)
 * Hello,
 * Thanks for your responds, i check and noticed that the issue comes and then disappears
   after a while.
 * I really don’t know why it keeps going that way.
 * I have disabled plugins and yet nothing. It only disappears when i disabled the
   amp4wp plugin.
 * This is strange
 *  Thread Starter [occupygh](https://wordpress.org/support/users/occupygh/)
 * (@occupygh)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16564221)
 * [@ahmedkaludi](https://wordpress.org/support/users/ahmedkaludi/) I think i found
   what was getting the error, I have the WP Super Cache, disabling seems to be 
   fixing the problem. I will keep you updated on how it goes.
 * Thanks
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16564537)
 * Hi, Thank you very much for the information. Yeah, Please keep updated here and
   let us know back if you need any other assistance, So we will assist you accordingly
   if you have any other queries or issues.

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

The topic ‘Custom javascript and AMP component ‘script’ tag’ 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/)

## Tags

 * [custom javascript](https://wordpress.org/support/topic-tag/custom-javascript/)

 * 14 replies
 * 2 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/custom-javascript-and-amp-component-script-tag/#post-16564537)
 * Status: resolved