javascript - Advice on loading images for profile picture creator -


i making simple little project fuel little gripe site want use keeps crashing machine or down.

basically have 3 groups of images: mouths, eyes , noses, allow user pick 1 each group , create picture. thought load in huge sprite 1 each groups , use css , javascript move position of image on blank face.

however thinking might better having each group item separate images , loading new image in using ajax when user requests new image example nose.

so question is: load in 3 x sprites or load in 3 images , call new image when user requests new nose.

just add there around 300 noses, 100 set of eyes , 300 eyes.

with many diffrent options may better load in new images on request, makes easier add new once later on top of , can preload next 3-4 images next/prev make user experience , goes load in next 1 , on.

you can find entire subject on how might done, if need here:

preload hidden css images


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -