Loading Faster... The Ordering???

Discussion in 'CSS' started by itsall3, Mar 24, 2007.

  1. #1
    Hi guys,

    Does the order make a differnce to how fast a page loads in a css file?


    E.G -- if i put all the css that loads background imags, border imgs etc at the top, will it load them first?


    Cheers.
     
    itsall3, Mar 24, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    That should be an easy question to answer. Create a page with an external stylesheet. Access the page with two or three different browsers, and look at your access.log file to see the order of requests. If you run Apache on a modern OS, run `tail -f /var/log/apache/access.log`. That'll show the last ten requests in real time.

    If you rerun the tests, remember to clear cache.

    cheers,

    gary
     
    kk5st, Mar 24, 2007 IP
  3. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Put things in order of flow. So stuff thats out of view loads last, just optimize images carefully, get a fast server and it should never be an issue.
     
    Valve-Hosting, Mar 29, 2007 IP