The Core

Why We Are Here => Web Development => Topic started by: Torben on November 03, 2010, 08:11:48 PM

Title: Google releases mod_pagespeed for Apache
Post by: Torben on November 03, 2010, 08:11:48 PM
Google has just released an Apache module, which automatically optimized the load time of a website.

It's called mod_pagespeed and pretty much implements all the elements evaluated in the PageSpeed browser extension

http://code.google.com/speed/page-speed/docs/module.html
Title: Re: Google releases mod_pagespeed for Apache
Post by: JamesR on November 03, 2010, 08:21:51 PM
Interesting, how do you feel about giving them that much control?  any potential for automated snafus?
Title: Re: Google releases mod_pagespeed for Apache
Post by: Torben on November 03, 2010, 09:44:28 PM
You are not giving Google any control by using mod_pagespeed.

All mod_pagespeed does is rewrite and optimize your site in the way you should be doing anyway if you care about loadtimes. Actually most of the functionality is covered by the W3 Total Cache plugin for WordPress.
Title: Re: Google releases mod_pagespeed for Apache
Post by: JamesR on November 03, 2010, 10:14:23 PM
Quoteimplements all the elements evaluated in the PageSpeed browser extension

I have to check details with my webmaster and I haven't looked into exactly what the Apache mod does but he intentionally chose not to integrate all the PageSpeed suggestions such as:

1 - "Serve the following static resources from a domain that doesn't set cookies"
2 - "Combine images into CSS spirtes" (we didn't want to do this with every image - understand the Apache tool couldn't do this)
3 - "Combine external java script"
4 - "Minify CSS"
5 - "Use efficient CSS selectors"

There were (apparently) good reasons not to implement the PageSpeed suggestions to the letter.

Title: Re: Google releases mod_pagespeed for Apache
Post by: Torben on November 03, 2010, 10:56:19 PM
>There were (apparently) good reasons not to implement the PageSpeed suggestions to the letter

The only valid reason for not implementing those five actions is if you think your time is spent better else where. Each of those areas will improve load time. End of story
Title: Re: Google releases mod_pagespeed for Apache
Post by: JamesR on November 04, 2010, 01:20:02 AM
Quoteif you think your time is spent better else where

That was part of it (negligible benefit to time spent) and also the cookie thing.  Our CMS sets cookies for its own tracking purposes along with other third party scripts/ad services.

CSS sprites, I am told, are problematic if your images are changing frequently within the sprite set (graphical features that change/automated according to various rules like sales/popularity etc.)

Again, there may have been other reasons as well, I don't handle it.
Title: Re: Google releases mod_pagespeed for Apache
Post by: jangro on November 04, 2010, 06:58:58 PM
Thing that stopped me short is that it requires apache 2.2.  CPanel's default isn't there yet, so it would require an upgrade. 

I'll be testing it out sometime soon.
Title: Re: Google releases mod_pagespeed for Apache
Post by: Torben on November 05, 2010, 10:33:15 AM
I have begun testing mod_pagespeed.

First thing to notice is the filename of RPM mod-pagespeed-beta_current_i386.rpm

Beta? No where on the Page Speed project site does it say anything about beta. I'm aware of that G likes to keep stuff in beta for as long as possible for legal reasons, but seriously guys? Don't lure webmasters in to installing beta software on production servers. 
Title: Re: Google releases mod_pagespeed for Apache
Post by: jangro on November 11, 2010, 06:40:14 PM
I'm watching this closely Torben.  Any updates?  Have you got it installed yet?
Title: Re: Google releases mod_pagespeed for Apache
Post by: ukgimp on November 11, 2010, 06:52:57 PM
I suppose you could "cloak" for cookies, ie not set them if they the UA is G :-)
Title: Re: Google releases mod_pagespeed for Apache
Post by: Torben on November 11, 2010, 10:08:28 PM
I posted my findings in a new thread: http://th3core.com/talk/web-development/mod_pagespeed-first-findings/