Preloading unwanted font from google when user not logged in
-
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! ??
- The topic ‘Preloading unwanted font from google when user not logged in’ is closed to new replies.