Page 1 of 1

web font is loaded after the rest of the text

Posted: Sun Jul 19, 2015 9:55 pm
by Fght
how can i fix this problem?

i want them to be loaded at the same time

Re: web font is loaded after the rest of the text

Posted: Mon Jul 20, 2015 3:51 pm
by W. H. Heydt
I don't know how you'd "fix" it, other than not specifying a font and letting the browser use its own default. the issue isn't exclusive to the Pi. I get that effect when I load the Slate main page in Firefox on a older Win7 system.

Re: web font is loaded after the rest of the text

Posted: Mon Jul 20, 2015 4:25 pm
by Fght
i think i want the titles to be with a web font.

if anyone knows for a solution let me know

Re: web font is loaded after the rest of the text

Posted: Mon Jul 20, 2015 5:19 pm
by ThomasS
Where have you specified the font? I'd do it within the head inside a style tag in CSS. E.g.

Code: Select all

<html>
<head>
<style>
body {font-family: Arial, Helvetica, sans-serif;}
</style>
</head>

<body>
<h1> My website </h1>
</body>

</html>

Re: web font is loaded after the rest of the text

Posted: Mon Jul 20, 2015 5:41 pm
by rpdom
Perhaps you could set the text as not visible to start with, then have some javascript that makes it visible once the page has loaded?

Should be easy enough :)

Re: web font is loaded after the rest of the text

Posted: Mon Jul 20, 2015 6:09 pm
by Fght
hahaha
i don't know any js at all

i just thought there is a simple way