CMS Development

phikes
Membro

Introduce the font-display descriptor for custom fonts used in HubSpot Widgets

resolver

Since HubSpot is using two custom fonts (at least in my chat widget): I propose HubSpot developers should add the `font-display` descriptor to the font declaration in the CSS. This can potentially save up to 100 ms of loading time and would potentially increase your customers' google ranking when they are using the HubSpot widgets on their webpages.

1 Solução aceita
dennisedson
Solução
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

Introduce the font-display descriptor for custom fonts used in HubSpot Widgets

resolver
3 Respostas 3
phikes
Membro

Introduce the font-display descriptor for custom fonts used in HubSpot Widgets

resolver

While the browser support is currently only at around 80% (see https://caniuse.com/#search=font-display) CSS-Tricks states, that "[...] If other browsers don't support it, they will behave according to their defaults. This isn't necessarily bad in that it doesn't break anything, [...]".

0 Avaliação positiva
dennisedson
Solução
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

Introduce the font-display descriptor for custom fonts used in HubSpot Widgets

resolver
phikes
Membro

Introduce the font-display descriptor for custom fonts used in HubSpot Widgets

resolver

Thanks, customer support pointed me here ;-). Gonna move the topic.

0 Avaliação positiva