Results 1 to 2 of 2

Thread: CSS lag time

  1. #1
    Join Date
    May 2008
    Location
    Canada
    Posts
    45

    CSS lag time

    When you load a page that loads relatively slow there is some lag time where the page is displayed but the CSS is not yet implemented. Do you know what I mean?...
    Is there a way to avoid this lag so the page loads with all the CSS in tact?

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    It may be because your connection is slower than it should be; most people will always use a separate stylesheet and there isn't usually much problem.

    However, the ways to avoid this would be to put the styles inside head section style tags and not use a separate stylesheet, but I wouldn't do it.

    Make your stylesheet as brief as possible.

    As the link to a separate stylesheet is in the head section, I think that it is probably downloaded into computer memory before the browser parses the rest of the page; so it may be something in the html body section that is delaying the use of the styles which are already in memory.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Problems Positioning with CSS
    By kirstybandm in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 17 Jan 2006, 05:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •