...

View Full Version : Sprites vs Java Onload



Sammy12
07-02-2011, 02:22 AM
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

Sammy12
07-02-2011, 10:14 PM
bump. really need some advice

Sammy12
07-03-2011, 08:13 AM
Thanks for your guy's input :P

Apostropartheid
07-03-2011, 04:23 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum