+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: CSS efficiency

  1. #1
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    CSS efficiency

    which would be more efficient in loading times?
    • (15 x 5) solid color background picture;
    • (15 x 15) solid color background picture;
    i am thinking that the 15x5 would load faster, but anything is possible

  2. #2
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: CSS efficiency

    if its a solid color, why not just use background-color: #/*value*/ ?
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  3. #3
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: CSS efficiency

    because i have it set within a <span> tag; and it has a set height, and to create the same effect it would require more coding, and therefore increases file size, and code starts to look messy

  4. #4
    sourfacedcyclop's Avatar
    sourfacedcyclop is offline x10 Sophmore sourfacedcyclop is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    221

    Re: CSS efficiency

    I would say that the 15x5 would be faster. The file size will be smaller, so once the browser loads it into its cashe (did I spell that right?), it will just repeat it until it fills the specifies area.

  5. #5
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: CSS efficiency

    it's cache. ;)

    And I get it now.
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  6. #6
    sourfacedcyclop's Avatar
    sourfacedcyclop is offline x10 Sophmore sourfacedcyclop is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    221

    Re: CSS efficiency

    Close enough

  7. #7
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: CSS efficiency

    so in this case, actually a
    15 x 1
    would be the most efficient

  8. #8
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: CSS efficiency

    yes. the smaller the file size the faster it can repeat itself and reduce load times (although a 15x1 wont take long to load at all, but some people still have dial-up).

  9. #9
    sourfacedcyclop's Avatar
    sourfacedcyclop is offline x10 Sophmore sourfacedcyclop is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    221

    Re: CSS efficiency

    If you are just using a solid color, I don't see why you just don't use a 1x1 side file....

  10. #10
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: CSS efficiency

    Quote Originally Posted by sourfacedcyclop View Post
    If you are just using a solid color, I don't see why you just don't use a 1x1 side file....
    i need the image to define the height of the bar

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. [php] Function Efficiency
    By taekwondokid42 in forum Programming Help
    Replies: 3
    Last Post: 04-06-2008, 10:28 AM
  2. Replies: 16
    Last Post: 11-16-2007, 08:52 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
x10hosting free hosting for the masses
dedicated servers