January 15th, 2004, 11:12 AM
CSS Style sheet is slow to load - help
I'm using CSS for style and positioning. I have this information in my style.css file. I import the file into my html file with this code:
When calling the page with the MS Internet Explorer, it first writes all the text out unformatted and then it applies the format. I know it does it this way because I can see it. It is too slow.
<style type="text/css" title="currentStyle">
Sometimes, it's just a flash, other times it's a whole second or two.
Regardless, I don't even want to notice the flash from unformatted to formatted. I notice that other pages don't seem to do this. How do I accomplish this? What am I doing wrong?
January 15th, 2004, 11:50 AM
isnt @import jsut for liek old netscape browsers...?
lets see some css!
"I hate quotations."
-ralph waldo emerson-
January 15th, 2004, 11:59 AM
<LINK href="stylesheet.css" type="text/css" rel="stylesheet">
<body id="Body" runat="server">
January 15th, 2004, 07:16 PM
I figured itout
I figured it out. That "More Related Threads" on the bottom was very helpful. It suggestedthis thread .
I replaced the above code with:
Cliffhanger9, I have no idea what the @ thing was all about. It was code I learned from a tutorial or from Zen Garden.
<link rel="StyleSheet" type="text/css" href="style2.css">
trebbettes, I couldn't get your code to work by replacing rel="stylesheet" with rel="style2.css". It just gave me an unformatted page. Did I do something wrong?
This new code seems to work well with MS IE. I don't know about Netscape or Mozilla though.