SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard
    Join Date
    Jan 2005
    Location
    blahblahblah
    Posts
    1,447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Progressive enhancement / responsive design / number of queries to .css files

    Hello,

    It seems to me that both the responsive design and progressive enhancement approaches rely on many (at least more than one) requests to .css files.

    What do you think about it? Does it slow websites? Is there a way to circle around that problem?

    Regards,

    -jj.

  2. #2
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,881
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    I don't see why that should be the case. You can easily put all your CSS into a single stylesheet, but that might make it difficult for you to manage, and might lead to surfers having to download a lot more bytes than if they were only given styles relevant to the page(s) they visited.

    Multiple requests to CSS files are unlikely to be the weak link in the chain when it comes to download speed and responsiveness/latency, unless you've gone seriously overboard with them.

  3. #3
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,272
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    I notice sites using WordPress etc who are quite slow at loading, but it's not so much from the 10 different stylesheets... it's more from the 16 different Javascript calls (many going to other servers) and all the ads that slowly come in from other servers, and the commenting system that's loaded from FaceSpace, etc.


    But you can use one stylesheet and the @media setting... means all devices will load the sheet but not run all the styles, but you'll still be sending special calls to IE less than 9 (you'll use CC's for IE anyway). The question always seems to be about, if a browser loads a stylesheet, does it call the images right away? The answer seems to be "no".


Bookmarks

Posting Permissions

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