Support » Plugin: AMP » how to refresh noscript

  • Resolved facem Web


    since a mounth, Google search console does take a look in the noscript tags. This situation can give some issues like the sizes attribute, attribute that is not recognized for amp google usage.

    I removed the sizes attribute with a script, but he is still present in the noscript tag. How can I refresh the noscript tags, it doens’t workk by refreshing the cache.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Weston Ruter


    Please share the URL to an AMP page on your site that has the problem.
    here it is

    <noscript><img class="wp-image-2282 aligncenter" src="" alt="Login Logout Register Menu 2" width="373" height="143" srcset=" 300w, 768w, 1024w, 1344w" sizes="(max-width: 373px) 100vw, 373px" /></noscript>

    Plugin Contributor Ryan Kienstra


    Hi @shojikama,
    Thanks for bringing this up.

    This looks to be an issue with the plugin’s <noscript> sanitization, which is tracked here:

    Until a fix is deployed, is the site using WP Rocket for lazy-loading, by chance? The <noscript> tag is often from lazy-loading, and there are references to plugins/wp-rocket/ in the non-AMP page source. This is only a guess, though.

    If it is, maybe there would be a way to only output the <noscript> if:

    ( ! function_exists( 'is_amp_endpoint' ) || ! is_amp_endpoint() )

    That conditional is true only on non-AMP pages.

    • This reply was modified 1 year, 1 month ago by  Ryan Kienstra.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to refresh noscript’ is closed to new replies.