Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Lee Hughes
8,380 PointsIncreasing speed for image heavy websites
I have a few image heavy websites, around 10-15 images per post. I like to keep my site as fast as possible and take steps to do this.
I compress my images before uploading them the I'm uploading the smallest possible size.
But when I do speed tests on my URLs the images are creating extra HTTP requests since they are loading one at a time.
Is there a way to fix this? I understand that I can use CSS sprites for background images etc so it's only one HTTP request but is there any thing in WordPress that will allow to upload images into my content and generate only one HTTP request?
5 Answers

James Barnett
39,199 Points
Lee Hughes
8,380 PointsThanks, I use WP Smush it and have tried lazy load but emails from people saying some images didn't show up when I used that plugin. Never heard of hammy so I'll check it out.
Cheers

Lee Hughes
8,380 PointsThanks, I use WP Smush it and have tried lazy load but emails from people saying some images didn't show up when I used that plugin. Never heard of hammy so I'll check it out.
Cheers

Zac Gordon
Treehouse Guest TeacherHas using a CDN factored into the speed tests?

Lee Hughes
8,380 PointsYup, I'm using a CDN with WP Engine. My homepage runs under 0.5ms but those with images run in at around 2.5 seconds.