material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

Text from label props is missing momentarily when loading the page.

Open travischoma opened this issue 11 years ago • 3 comments

When I first load the page, all the chrome loads, and text that's in normal html tags. But anything with a label prop, like a RaisedButton or a ListItem is missing the text for the first second until the page is fully loading.

Is there something that can be done so that text from labels shows on first load?

travischoma avatar Jul 20 '15 21:07 travischoma

@travischoma would you be able to share a gif / video of that? On my end, if I go to the "Buttons" page of the docs, and refresh, the labels seem to be present before other parts of the page load up..

shaurya947 avatar Nov 18 '15 17:11 shaurya947

Probably because we don't have fall back for the default font, @oliviertassinari What do you think?

alitaheri avatar Dec 30 '15 22:12 alitaheri

That's an issue with the font loading. It's not the responsibility of material-ui.

You have to choose between the different available rendering strategy of the font. I advise you to read the Optimizing loading and rendering section of https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/webfont-optimization?hl=en.

oliviertassinari avatar Dec 31 '15 10:12 oliviertassinari