#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Location
    North Augusta, SC
    Posts
    42
    Rep Power
    11

    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:
    PHP Code:
    <head>
    <
    style type="text/css" title="currentStyle">
            @
    import "style2.css";
    </
    style>
    </
    head
    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.

    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?
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Location
    city of sin, state of the art
    Posts
    421
    Rep Power
    0
    isnt @import jsut for liek old netscape browsers...?

    lets see some css!
    "I hate quotations."
    -ralph waldo emerson-
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    40
    Rep Power
    12
    try....

    <HTML>
    <HEAD>
    <title>Match</title>
    <LINK href="stylesheet.css" type="text/css" rel="stylesheet">
    </HEAD>
    <body id="Body" runat="server">
    RARRARARAR TEST
    </body>
    </HTML>
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Location
    North Augusta, SC
    Posts
    42
    Rep Power
    11

    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:
    PHP Code:
    <head>
         <
    link rel="StyleSheet" type="text/css" href="style2.css">
    </
    head
    Cliffhanger9, I have no idea what the @ thing was all about. It was code I learned from a tutorial or from Zen Garden.

    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.

IMN logo majestic logo threadwatch logo seochat tools logo