Font loading but console error
Joaojack opened this issue · 3 comments
Hi, I'm using an adobe typekit font with your module. The website is generated static and everything works fine, the font is displayed, although i have this error in console :
GET https://use.typekit.net/[myprojectcode].css/ net::ERR_ABORTED 404
My config settings :
fontLoader: { url: 'https://use.typekit.net/[myprojectcode].css/', prefetch: true, preconnect: true },
Do you know why this error pos in my console ?
thanks
Hi, it's hard to say exactly where the problem is without inspecting the code.
My config settings :
fontLoader: { url: 'https://use.typekit.net/[myprojectcode].css/', prefetch: true, preconnect: true },
Double check that the link to the styles is correct. (try to remove /
after '...css/'
)
Well...you solved the issue, it was the slash. I didn't pay attention as Adobe provides the link with it. Thanks a lot !
Np, I'm glad it worked! Cheers!