Title: AMP issue cause javascript footer
Last modified: January 7, 2022

---

# AMP issue cause javascript footer

 *  [creativoideal](https://wordpress.org/support/users/creativoideal/)
 * (@creativoideal)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/amp-issue-cause-javascript-footer/)
 * I had to disable your plugin in cause it was causing AMP error cause you are 
   injecting javascript footer, and this is not allowed on AMP pages.
 * I got a few thousand pages penalised by google search console right away after
   installing your plugin in.
 * although debug mode was disabled the javascript code still there.
 * please remove the auto insertion of javascript, or disable it when disabling 
   debug.
 * `<script id="cache-master-plugin"> var cache_master = '{"before":{"now":"2022-
   01-07 05:45:27","memory_usage":26.9345,"sql_queries":124,"page_generation_time":"
   0,441"}}'; var scm_report = JSON.parse(cache_master); var scm_text_cache_status
   = ""; var scm_text_memory_usage = ""; var scm_text_sql_queries = ""; var scm_text_page_generation_time
   = ""; if ("before" in scm_report) { scm_text_cache_status = "No"; scm_text_memory_usage
   = scm_report["before"]["memory_usage"]; scm_text_sql_queries = scm_report["before"]["
   sql_queries"]; scm_text_page_generation_time = scm_report["before"]["page_generation_time"];}
   if ("after" in scm_report) { scm_text_cache_status = "Yes"; scm_text_memory_usage
   = scm_report["after"]["memory_usage"]; scm_text_sql_queries = scm_report["after"]["
   sql_queries"]; scm_text_page_generation_time = scm_report["after"]["page_generation_time"];}(
   function($) { $(function() { $(".scm-field-cache-status").html(scm_text_cache_status);
   $(".scm-field-memory-usage").html(scm_text_memory_usage); $(".scm-field-sql-queries").
   html(scm_text_sql_queries); $(".scm-field-page-generation-time").html(scm_text_page_generation_time);
   $(".cache-master-benchmark-report").attr("style", ""); $(".cache-master-plugin-
   widget-wrapper").attr("style", ""); }); })(jQuery); </script>`

The topic ‘AMP issue cause javascript footer’ is closed to new replies.

 * ![](https://ps.w.org/cache-master/assets/icon-256x256.png?rev=2392499)
 * [Cache Master](https://wordpress.org/plugins/cache-master/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cache-master/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cache-master/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-master/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-master/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-master/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [creativoideal](https://wordpress.org/support/users/creativoideal/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/amp-issue-cause-javascript-footer/)
 * Status: not resolved