Hi,
I have a bunch of pages that display thumbnails of images uploaded by
the users and I was wondering what is the best thing to do between :
1) Use getimagesize() in PHP for each thumbnail on the page and
include the image dimensions in the html of the page being displayed.
This will be better for the user because no browser redraw will occur
but slows down the page creation on the server side, (50 thumbnails *
time it takes for getimagesize() to execute) If i have many users at
the same time, many calls to getimagesize() happend on the server and
the server is then slower to respond to other requests.
2) Don't specify Image dimensions at all. The server does not have any
work to do, the user will see a browser-redraw when the pictures are
downloaded but might get the content faster since the server is less
busy.
3) Store the image size in a mysql database and retrieve it each time
a thumbnail is displayed. Better for the user (no browser-redraw), but
still slower than #2, because there is more data to process on the
server.
What option is the best? What is better between Speed and Perceived-
speed? Is there any other way of doing this?
Thanks!
--
You received this message because you are subscribed to the Google Groups "page-speed-discuss" group.
To post to this group, send email to
page-spee...@googlegroups.com.
To unsubscribe from this group, send email to
page-speed-disc...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/page-speed-discuss?hl=en.