Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7

Thread: CSS Sprites

  1. #1
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default CSS Sprites

    Has anyone here been using them? If so has it effected the load times of pages at all?

    I've been considering using them but I dont think it would speed up the load times enough to warrent even bothering with them.

  2. #2
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    For things like rollover buttons, I find it much easier to have two images, and pre-load the other with JS.

    That said, if you're gonna need lots of images, I'd probably try it and see.

    eg. http://www.google.co.uk/images/nav_logo8.png
    Last edited by Apolva; 13-04-2010 at 12:44 PM.

  3. #3
    Join Date
    Nov 2008
    Location
    Cambridge, UK
    Posts
    901
    Tokens
    100

    Default

    It's only there to lower the amount of HTTP requests. Completely pointless on a low traffic site unless you have like, 1MB of bandwidth a month.

  4. #4
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    I know about the requests on the server but the load time of the file is "suppost" to be effected aswell I'm just not sure if its noticeable or not.
    I read somewhere that its quicker to download one file then 2 smaller files of equal size, so I'm just wondering if anyone has noticed a diffrence if they've used it.

  5. #5
    Join Date
    Nov 2008
    Location
    Cambridge, UK
    Posts
    901
    Tokens
    100

    Default

    Well considering you would only blit with small images on a sprite sheet, I don't think you would actually notice the difference, even if there was one.

  6. #6
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    Quote Originally Posted by redtom View Post
    I know about the requests on the server but the load time of the file is "suppost" to be effected aswell I'm just not sure if its noticeable or not.
    I read somewhere that its quicker to download one file then 2 smaller files of equal size, so I'm just wondering if anyone has noticed a diffrence if they've used it.
    Well with regards to that, it makes a huge difference if you download 50 large images compared to 950 individually.
    See: http://habbopfm.com/
    Against: http://bobbavalues.com/?go=rares

  7. #7
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    It's pretty stupid for anyone who has latency under 400ms (which is essentially the entire world). However if the site garners a lot of unique hits or has an absolute truckload of images to load at once it's advisable to use the sprite method as it'll cut down on the iops speeding up other such things.

    Edit:
    Simple answer no.
    Complex answer possibly.
    Last edited by Jewish Bear; 14-04-2010 at 04:20 PM.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

Posting Permissions

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