Quote:
I pre-load the images as 1x1 pixels
so the popups happen faster.
Is there a better way? |
Pre-load may be good in such situation only if user has a high-speed
connection plus (s)he waits until your page is fully loaded (with all
"big images" buffered). If user has a rather slow connection and/or
user starts to click thumbnails before all big images are fully loaded,
it will produce a big mess in your script and bit irritation for user.
IMHO you should follow the common "browsing experience". Everyone's
learned that pictures in the browser never appear "right away", but
displayed part-by-part upon arrival. So it would be totally normal and
expected to open a popup for the big picture right upon the click on
the thumbnail, and let it be loading in view of the user.
If you care to make the waiting period the least boring for users, you
may convert all your GIF's into the *interlaced* format, and all your
JPG's into *progressive* format.