When using Material-UI, the fonts block the rendering of the first page. If no fonts are loaded, Material-UI defaults to using the Helvetica font until Roboto is downloaded.
/signup (localhost)
…media/roboto-latin-500.4b218fc7.woff2 (localhost) - 763.7ms, 14.5KB
…media/roboto-latin-400.a2647ffe.woff2 (localhost) - 769.5ms, 14.5KB
Is there a way to asynchronously import fonts instead of using:
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
or
import 'typeface-roboto'
I attempted to use the 'media' attribute and @font-face observer method:
<link rel="stylesheet" href="fonts.css" media="bogus"/>
but it did not work. I also tried using a font loader plugin from fontfaceobserver.com
I am currently using version 1.0.0-beta.3 of Material-UI.