"Font-display: swap" toggle in settings

Adding a toggle in the Font settings of a project to turn the display: swap class attribute on or off. Turning it on ensures the text is visible during loading and helps with the Google PageSpeed score.

This can only be done on Webflow-side since the font classes in the CSS are always loaded *before* any custom code in the head. So adding display: swap in the head has no result right now.

  • Max Nagtegaal
  • Jul 25 2020
  • and 4 more