mapbox / assembly

Making the hard parts of designing for the web easy.
https://www.mapbox.com/assembly/
134 stars 27 forks source link

Add font-display:swap to @font-face declarations #975

Closed samanpwbb closed 3 years ago

samanpwbb commented 3 years ago

Add font-display:swap to @font-face declarations. Here's a GIF showing the visual impact:

2021-03-31 11-43-59 2021-03-31 11_45_23

There's a little layout shifting but the upside is we get a quicker initial render.

@katydecorah for review

closes #969