CMS Development

jeromecollomb
Participant

Font loading only when logged in to Hubspot

SOLVE

Hi guys,

I'm facing a weird issue with font loading.
My landing pages are loading the Proxima-Nova font but they seem to display it only to hubspot logged in users. Anybody looking at the page and not logged to Hubspot (i.e. the whole world) see a different font, which is a big problem to me.

I tried with different computers, versions of Chrome, cleared browser cache, no luck.
Example here: http://get.myfeelback.com/en/maisons-du-monde-en

Below is the version when logged and displaying the right font :

Image%2525202019-05-15%252520at%25252011.08.15%252520AM

And here is the version everyone sees with the wrong font (serif):

Image%2525202019-05-15%252520at%25252011.10.36%252520AM

My template mentions this:
Image%2525202019-05-15%252520at%25252011.18.47%252520AM

And the MyFeelBack_Nov2015-fonts.css file mentions this:

Image%2525202019-05-15%252520at%25252011.17.17%252520AM

Can you help, please?

Thanks,

0 Upvotes
1 Accepted solution
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Font loading only when logged in to Hubspot

SOLVE

@jeromecollomb it looks like the font files are 404'ing in the console. You may want to upload the font files again and relink them.

 

P.S. random performance tip: move the CSS to your global head and use the {{ require_css() }} HubL function instead of using CSS @ imports. This will increase your page speed since it will be able to asynchronously load the CSS files.

Stefen Phelps, Community Champion, Kelp Web Developer

View solution in original post

2 Replies 2
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Font loading only when logged in to Hubspot

SOLVE

@jeromecollomb it looks like the font files are 404'ing in the console. You may want to upload the font files again and relink them.

 

P.S. random performance tip: move the CSS to your global head and use the {{ require_css() }} HubL function instead of using CSS @ imports. This will increase your page speed since it will be able to asynchronously load the CSS files.

Stefen Phelps, Community Champion, Kelp Web Developer
jeromecollomb
Participant

Font loading only when logged in to Hubspot

SOLVE

How could I miss this? Smiley Embarassed
Thanks @stefen 

0 Upvotes