• Resolved jaumearagay

    (@jaumearagay)


    I’m using a Neve child theme but using Neve I have the same problem…

    I’ve tracked an unwanted string in my pages which is: ” crossorigin/>

    It comes from loader.php at line 117. I don’t know why it’s preloadind the Montserrat font family from Google and also adding that broken string so it appears on every page. But when logged in that line is not loaded…

    This is what the page origin looks like when NOT logged in:

    <meta charset="UTF-8">
    	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
    	<link rel="profile" href="https://gmpg.org/xfn/11">
    		<title>MY_SITE_TITLE</title><link rel="preload" as="font" href="<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap" rel="stylesheet">" crossorigin/>
    <style id="editorskit-typography-inline-css"></style><meta name='robots' content='noindex, nofollow' />

    This is the same fragment when logged in:

    <meta charset="UTF-8">
    	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
    	<link rel="profile" href="https://gmpg.org/xfn/11">
    		<title>MY_SITE_TITLE</title>
    <style id="editorskit-typography-inline-css"></style><meta name='robots' content='noindex, nofollow' />
    <link rel='dns-prefetch' href='//s.w.org' />

    I’ve removed the Montserrat font family from my header styles to remove Google Fonts for the Headers but this family font is still loaded… Where can I check where it comes from in order to remove it?

    Thanks in advance! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jaumearagay

    (@jaumearagay)

    Never mind… It was part of the server policy to optimize external font loading. I’ve deactivated it and it does not happen anymore… ˉ\_(ツ)_/ˉ

    • This reply was modified 3 years, 5 months ago by jaumearagay.

    Hi there!

    We’re glad to hear you managed to fix the issue in the meantime!

    Have a nice day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Preloading unwanted font from google when user not logged in’ is closed to new replies.