Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts

    Sprites vs Java Onload

    Hey guys,

    Should I use sprite images or just onload them with java. For a hover link, I don't want that flicker between the two images. What are the pros/cons of both of them?

    Thanks
    Last edited by Sammy12; 07-03-2011 at 07:26 AM.

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    bump. really need some advice

  • #3
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Thanks for your guy's input :P

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by Sammy12 View Post
    Thanks for your guy's input :P
    Don't be a douche. We're not obliged to help.

    Sprites have the advantage of only having one HTTP request. As for the vast majority of connections the HTTP request is the slowest part of a download, you should probably go for sprites. Not to mention that you could put a lot of your site's smaller images in there. Many larger companies, such as Google, use sprites to reduce their server load.


  •  

    Posting Permissions

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