On a speed kick

After pulling a big image and a bunch of JavaScript from one of my sites - the Sexy Bookmarks thread - I wanted to see what else I could do.

Originally the Web Page Analyzer was estimating about 6.5 seconds for the page to load. Way too slow. But taking out a giant CSS image along with the JavaScript that was required for the social bookmarking plugin that used the image got that down to 2.35 seconds.

Now it was time to play with CSS sprites.

Basically, the more requests your page has to make, the slower it goes. For each file requested - image, CSS, JavaScript, whatever - there is a bit of latency in addition to the time actually required to download the file. And for small files the latency is longer than the download time.

Originally my site was downloading a total of 11 objects, which really isn't bad. Of those 11, 8 were images.

I took those images and combined them into a single PNG sprite, messed with the CSS a bit, and was able to get it down to a request time of 1.37 seconds with only 6 objects. Two of the images weren't able to go in the sprite because of the way they're used or it would have been 4 requests.

And now I'm a bit obsessed and am off to see what minifying the CSS will do.
Logged


Think I'm just about as low as it's going to go.

Minified the CSS file and enabled gzip on my server and got the speed estimate down to 1.31 seconds. Not much better than the 1.37 it was, but much better than the 6.5+ seconds it started at.
Logged


I'd say a 500% time decrease would be considered a win. Especially if it did the same thing for mobile viewing.
Logged

-John
Sarcasm, frustrating the clueless since 3000 b.c.
"There is no Un-Suck filter" David duChemin

Check out the new blog. http://www.jklebphoto.wordpress.com

Guess the next step would be to work on this site Cheesy Grin It's telling me around 6.5 seconds for the first page load here. Around a quarter meg and 26 objects.

...eta...

Got the home page down to 3.02 seconds from 6.5. Minified the main CSS files, removed the print CSS file, and combined and minified the 3 javascript files. Also enabled GZip on the server.

Google Page Speed plugin went from a 55% to 78%. Looks like there's still some stuff I need to do with caching.

... more eta...
Down to 2.8s
« Last Edit: December 10, 2011, 02:50:04 PM by Ryan »
Logged