Troubleshoot Webflow
Text jumps when fonts load in Webflow
After the main font has been loaded, a brand font is then added and so the page layout is altered. Minimise the number of fonts and add a good backup font.
Possible issues
- Immediately after viewing a page, headings can be a different size and/or line-break in a new manner.
- Content such as buttons and body text also changes position either upwards or downwards.
- A page may also be reported as having a high Cumulative Layout Shift.
Check these in order
Investigate in this order. Usually an issue will be identified within the first couple of steps.
- 1
Identify layout shift
View your live site in incognito mode in Chrome. Within DevTools, select Cmd + Shift + P (for Mac) or Ctrl + Shift + P (for Windows). Enter Show Rendering. Under Advanced Settings in DevTools, ensure that Layout Shift Regions is switched on. Refresh the page and the regions which shift will be shown.
- 2
Font inventory
Within Site settings > Fonts, Webflow recognises if a site is using more than 10 webfonts. Furthermore, the Site Usage Dashboard shows which fonts (greater than 80KB in size) are being loaded over 1000 times.
- 3
Minimise font weights and types
Whilst Webflow’s example demonstrates 6 font weights, in reality just two (regular 400 and bold 700) are needed for the design. Reducing the number of fonts reduces those requiring downloading and allows quicker access to the brand font.
- 4
Effectively eliminate fonts
As per Webflow’s advice, prior to deleting a font, it should be unlinked from all places where it has been applied (including both classes and canvas items). Otherwise content will default to Times New Roman. Moreover, a Google font will continue to be loaded until all uses of it have been unlinked. After doing this, you can then remove the font from Site settings and republish.
- 5
Apply variable fonts or WOFF2 fonts
Variable fonts enable multiple weights to be included within one font file. For self-uploaded fonts, WOFF2 format should be used as it is said by Webflow to be up to 50% smaller than TTF/OTF.
- 6
Select an appropriate backup font
For every custom font which you upload, Webflow automatically generates a backup font. You can then choose from a selection of alternative backup fonts. Select a font which has a comparable letter form and thickness to your brand font.
- 7
Apply system fonts
As they are already installed on a person’s device, system fonts are instantaneously available for use.
- 8
Allow room for delayed content
Layout shift can occur due to embeds, images, dynamic banners and delayed content. Assign a static height or aspect ratio to boxes.
- 9
Re-verify
According to Google, a good value for Cumulative Layout Shift is 0.1 or under. A value exceeding 0.25 denotes a bad score.
Speed
Make the pages load fast on a phone.