It would be nice having the option to preload the next image while viewing the photo I'm voting on. Just a couple of lines of javascript code which would make voting a lot easier for us born without patience.
Not that is a big deal... Just a cool extra feature =)
Edit: On a 512kb/s (64k/s dl speed) connection it takes at least 2,4sec to load 150kb image. 2,4sec x 200 images = 468,75 sec = 7,8 minutes
It would be worthwhile doing a 'just in time' cache of the next image that you'll look at, in the majority of cases. If the voter clicks off to do something else, it isn't a huge overhead, assuming that typically if you are voting, what you do is actually vote, hence load the next image in line, the majority of the time.
Edit: actually, looking at the source, the image to preload is already indicated in the file, in the field NEXT_ID & CHALLENGE_ID. So when the source file is being created, the following lines could be added:
imgcache = new Image();
imgcache.src ="//images.dpchallenge.com/images_challenge/${CHALLENGE_ID}/${NEXT_ID}.jpg";
Or whatever the correct substitution syntax is, in the language used when the pages are being created.
and that should be it.
The only drawback to this approach is that for each new session I create, the first image I view will take twice as long to load up. Might not be annoying for most users, but I know I tend to log on and off (and on and off, ad nauseum) the site a million times a day.
Still, the overhead of having another img variable active during a page view is probably negligible on the client end. Server-side????
The only drawback to this approach is that for each new session I create, the first image I view will take twice as long to load up. Might not be annoying for most users, but I know I tend to log on and off (and on and off, ad nauseum) the site a million times a day.
I don't think this is true - assuming the code is placed in the right order in the file. The first page will take twice as long to load, but you will still see the first image in the same amount of time.