Fght
Posts: 319
Joined: Thu Feb 05, 2015 10:26 pm

web font is loaded after the rest of the text

Sun Jul 19, 2015 9:55 pm

how can i fix this problem?

i want them to be loaded at the same time

W. H. Heydt
Posts: 10749
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

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

Mon Jul 20, 2015 3:51 pm

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.

Fght
Posts: 319
Joined: Thu Feb 05, 2015 10:26 pm

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

Mon Jul 20, 2015 4:25 pm

i think i want the titles to be with a web font.

if anyone knows for a solution let me know

ThomasS
Posts: 118
Joined: Thu Jan 23, 2014 7:05 pm
Location: Leeds
Contact: Website

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

Mon Jul 20, 2015 5:19 pm

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>
ThomasS

User avatar
rpdom
Posts: 14984
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

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

Mon Jul 20, 2015 5:41 pm

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 :)

Fght
Posts: 319
Joined: Thu Feb 05, 2015 10:26 pm

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

Mon Jul 20, 2015 6:09 pm

hahaha
i don't know any js at all

i just thought there is a simple way

Return to “Off topic discussion”