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.