• Resolved RobotFX

    (@wattaman)


    I’ve noticed that Jetpack boost is inserting <noscript> elements in the header (maybe somewhere else). I do not want this for example:

    <noscript><link rel='stylesheet' id='custom-google-fonts-css' href='https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:[email protected]&display=swap' media='all' />
    </noscript>
    How to have Jetoack Boost not create <noscript> elements?
    • This topic was modified 1 year, 1 month ago by RobotFX.
Viewing 1 replies (of 1 total)
  • Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hi there, @wattaman,

    The script you reported is necessary for critical CSS to work without issues. We change the style tags in the page to make them non-render-blocking. After the stylesheet files are downloaded, we modify the tags again so they can be applied on the page. We do this modification using JavaScript. However, a disadvantage of that is that the stylesheets will not be applied at all if JS was disabled on the browser.

    That’s why we have these noscripts as a backup for when JavaScript is disabled. By placing those, we ensure the page still shows up correctly if JS is not supported.

    There is currently no way to remove this if they are using critical CSS.

    Hope that answers your question!

Viewing 1 replies (of 1 total)

The topic ‘Do not insert NOSCRIPT tags’ is closed to new replies.