You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed on faster connections the fonts will race each other, so if the original definition returns first it wont try and download the second declared version of the font.
This means on slower connections they will always download.
@injms from the Registers team has noticed that when loading GOV.UK Frontend alongside GOV.UK Elements it will load the webfont twice.
This was surprising to me as I expected font-face to ignore a previous declaration.
They found a work around which is to trick GOV.UK Frontend into thinking it's using a custom font which'll prevent the font-face declaration to be output: https://github.com/openregister/registers-frontend/blob/e387d872828fbc5239a4c872fd759911794b021b/app/assets/stylesheets/application.scss#L39
We should keep this in mind when implementing the new version of the font.
The text was updated successfully, but these errors were encountered: