3 ms·
This isnt answering your question but i've got a quick suggestion for you dev wise. Cache those images on your front page, then stitch them together into a big
by TamDenholm 16y ago
This isnt answering your question but i've got a quick suggestion for you dev wise.
Cache those images on your front page, then stitch them together into a big sprite and then use CSS to display the specific image from the sprite. It'll greatly decrease the load time on that page.
Ref: http://css-tricks.com/css-sprites/ http://css-tricks.com/css-sprites/
- eru 16y agoWouldn't you want to decrease load times? Or do you think people are more likely to click on an ad, if they have to wait longer?
- carbocation 16y agoDoing that would decrease load times for repeat visitors.
- TamDenholm 16y agoMy bad, i meant decrease, i've fixed it.
- eru 16y agoInline images with data URIs might perform equally well with less hackery.
- yatsyk 16y agodata URIs are not supported on IE. css sprites supported anywhere and quite common.
- eru 16y agoWikipedia says that IE8 supports them to some extent. But you are right, you would need to build two solutions to support older browsers, too.
- yatsyk 16y agowhy do you need to implement two solutions if sprites is OK for this case? data url is great in some cases, for example generate images on client side but imho css sprites are optimal there.
- user24 16y agodata urls aren't cacheable either.
- rmc 16y agoLook at the browser stats (You do have google analytics (or similar) installed). Then make a business decision if you want to exclude x% of yoru customers. It might make business sense
- AlexC04 16y agoThank you very much! I hadn't taken the time to think about load times... but you're absolutely right. I'm going to put it on the list as one of my priorities. I think improving / creating a navigation system where players can find a game by category, tag or genre is a higher priority (though I could be wrong) I'm also hoping to add a game description and * star rating to the mouse over tooltip. I think if users can find the game they want to play - they might forgive load time (though I could very well be wrong). Maybe I should put fewer games on the front page? (I do like having a lot of squares to look at, it makes it seem more fun to me) but you're absoloutely right. load time with a star beside it - right there on my TODO list :)
- eru 16y agoYou may add a navigation system, but please make it optional and keep the ability to just click on a picture and start playing.