PDA

View Full Version : Import or not to import that is the question


cocoonfx
10-15-2007, 07:42 PM
Hello


I have built a login page using php and a css style sheet. Both on my home pc and on my work pc i notice that the style sheet does not load imediately and you can see the basic layout first.

I am using the following


<style type="text/css" media="screen">
/*<![CDATA[ */
@import url(umembers.css);
</style>


Should i use the standard link method or this method above to get the firstest results?

regards
James

davidj
10-15-2007, 07:49 PM
have you tried the other

cocoonfx
10-15-2007, 07:57 PM
No being lazy.... having a very bad day.... surpose i should try it but i want to find out what the masters of the forum would recommend?

davidj
10-15-2007, 07:59 PM
im not a CSS guy and have always linked the file

it would be interesting to find out which is best and why

cocoonfx
10-15-2007, 08:08 PM
now you got me thinking.... i will have a play later tonight with that.... let you know the findings. By the way i love the firefox add in.

domedia
10-15-2007, 08:48 PM
I would go with the normal linking if you experience problems:
<link rel="stylesheet" type="text/css" href="styles.css">

now you got me thinking.... i will have a play later tonight with that.... let you know the findings. By the way i love the firefox add in. Make sure you let Ranjan know :)

Cary
10-16-2007, 02:22 AM
Just use a link instead, and if you still see the FOUC stick this in the head of your page:

<script type="text/javascript"></script>

For more info see Flash of Unstyled Content (FOUC) (http://www.bluerobot.com/web/css/fouc.asp/).