How do I upload multiple images into a gallery for a small website without adding lag?

If I just add 20 images or so, the site takes too long to load. How can I make my site load as quickly as Google images and look more or less like it but with at most 20 images (similar size as Google images are)? Is it possible?

Here is an example page that takes too long to load: http://dougingramnursery.com/whats-new/

Answers


The images are definitely larger than google images, google images shows you thumbnails then when you click it it shows you the larger image.

To create a thumbnail you can scale it down with any image editor.


First of all you might want to show us some code if you have some, we could help optimize it a bit. Then make sure you place your scripts when possible at the bottom of the body. Also compress the images using an image compressor along with using .htaccess to leverage browser caching. Which will practically remember those pictures when the users visits the page again, which will speed things up. Try to combine multiple CSS and JS files together or compress them using a tool such as Smaller if you have a Mac. If you're using Amazon S3 for hosting your images it should usually be pretty fast. But if its on your site then it might be a bit slower. SSL also slows down the time a bit. Your best bet would be to take a speed test and figure out whats causing the lag. Here's a few websites that will help with that.

  1. Pingdom Website Speed Test

  2. PageSpeed Insights

  3. GTMetrix


I suggest you use Yahoo's SmushIt service to optimize your photos > http://www.smushit.com/ysmush.it/. After optimizing your photos re-upload them to the site, this should improve load time. Let me know if this helps.

  • Jesse

Need Your Help

Can I get a FILE* backed by data already in memory?

c windows file io fread

My code currently uses a library that I pass a FILE* to and it reads a bunch of complicated configuration data using the fread() CRT API. I'd like to move the file to become an embedded resource w...

Gmail mail server

python gmail

I used use Google’s slick interface to get my mail and It’s always going to be here: