• Resolved bspaceships

    (@bspaceships)


    There’s a script tag that’s added on every page by our theme including AMP pages. We were hoping this plugin extension for AMP could remove it from AMP pages but the issue seems to persist. This script tag is keeping our AMP pages from being indexed by Google.

    Example URL is below:

    https://www.devinebath.com/blog/forget-trendy-designing-trendproof-bathrooms-and-kitchens-that-will-last/amp

    The script tag appears just above the closing body tag:

    <script type=”text/javascript”>(function() {window.addEventListener(“load”,function(){var elem = document.getElementById(“thegem-preloader-inline-css”); if (elem!==null) setTimeout(function() {elem.parentNode.removeChild(elem)}, 300); });})();</script>

    Is the plugin AMP extension designed to deal with this sort of issue? All help appreciated.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @bspaceships

    Thank you for reaching out and I am happy to assist you with this.
    The W3 Total Cache AMP extension is designed to add compatibility for accelerated mobile pages (AMP) to minify.
    The extension does not add or remove the AMP URL Postfix ?amp or /amp/
    This is being added by the AMP plugin you are using.
    I would advise reaching out to the support of the AMP plugin you are using as this is not related to W3 Total Cache.
    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘AMP extension doesn’t remove script tag’ is closed to new replies.