Which is more efficient?

Discussion in 'HTML & Website Design' started by Helado, Jul 1, 2010.

  1. #1
    Hello there,

    I have 40 sites and they all have the same layout, just different logos and content. The images are all the same, and the css files are identical. I want to know what is more efficient for the visitor; having 1 global folder for the images & the css, or repeating the images and css over every site.

    If you don't quite understand I will explain.

    My site has a main domain: site1.com, then I have subdomains like site2.site1.com, site3.site1.com, and on these subdomains I add a domain: site2.site1.com is site2.com, etc.

    I have an images folder and css folder on site1.com that is the global folder. So, in the coding on site2.com and site3.com, etc. I put link href="http://site1.com/css/style.css" as the style sheet for all 40 sites - so I only have 1 actual css file, but it works for all 40 sites and is hosted on the main domain. I do this with images too.

    Folders would look like this:

    - public_html
    -- site1
    --- css
    ---- style.css
    --- images
    ---- img.png
    --- index.html

    -- site2
    --- index.html

    -- site3
    --- index.html

    etc.


    So the other way: an individual css file for EACH site. That means I'll be copying 1 css file 40 times. So all of the links would say href="css/style.css". The folders would look like this:

    - public_html
    -- site1
    --- css
    ---- style.css
    --- images
    ---- img.png
    --- index.html

    - public_html
    -- site2
    --- css
    ---- style.css
    --- images
    ---- img.png
    --- index.html

    - public_html
    -- site3
    --- css
    ---- style.css
    --- images
    ---- img.png
    --- index.html

    etc.

    Which is more efficient? Having just 1 file on the 'head' site, for having 40 files locally?

    Thanks.
     
    Helado, Jul 1, 2010 IP
  2. anands

    anands Well-Known Member

    Messages:
    436
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #2
    I think having one file in the parent site makes sense here.
    But are you sure you will not be editing the CSS individually, my friend?
     
    anands, Jul 1, 2010 IP
  3. coolaromas

    coolaromas Peon

    Messages:
    23
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I agree with anands.
     
    coolaromas, Jul 1, 2010 IP
  4. Helado

    Helado Peon

    Messages:
    696
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The CSS will be the same for every single site/layout.

    Thanks for your input guys! :)
     
    Helado, Jul 2, 2010 IP