Grow your CSS skills. Land your dream job.

CSS Sprites even when file is much larger?

  • # January 2, 2013 at 2:17 pm

    Hey guys,

    is there an obvious advantage in using CSS sprites when the combined images are a lot larger than the single image files?

    I heard that the aim is to reduce HTTP requests, but is this reason enough to compromise the image loading time?

    I’m looking forward hearing your take on this one!

    Cheers,
    Jakob

    # January 2, 2013 at 2:19 pm

    How many images are we talking?

    # January 2, 2013 at 2:25 pm

    About 10-15 images

    # January 2, 2013 at 3:22 pm

    The sprite will be cached and no more http requests. 99% of the time sprites are going to ultimately be faster overall

    # January 2, 2013 at 4:00 pm

    It definitely depends on how big the image is. If it’s turning itself into a 1mb sprite then you’ve gone too far, imo.

    # January 2, 2013 at 4:04 pm

    Yeah, as @TheDoc said – if it’s a massive image file you need to look at what you’re doing to see if there’s an alternative.

    # January 2, 2013 at 5:25 pm

    Ok, good to know. Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".