• Resolved strarsis

    (@strarsis)


    For improving performance when dynamically embedding Google Fonts, a preconnect <link> element for CORS preloading is used by some themes/plugins:
    <link href='https://fonts.googleapis.com' crossorigin rel='preconnect' />

    This can cause the browser to establish a connection to Google Fonts.
    This particular <link href="[...]fonts.googleapis.com[...]"> element isn’t stripped by this plugin yet, so this would be a great and also important addition to it.

    Those resource hints are added the “WordPress-way” by using the wp_resource_hints filter.

    • This topic was modified 2 years, 2 months ago by strarsis. Reason: Add note about resource hints and how this is managed in WordPress
    • This topic was modified 2 years, 2 months ago by strarsis.
    • This topic was modified 2 years, 2 months ago by strarsis.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Also remove Google Fonts related resource hints’ is closed to new replies.