Hello,

I thought I would start a thread and share what I've experienced installing the new mod_pagespeed for Apache and my Drupal site.

You can read about it here: http://code.google.com/speed/page-speed/docs/module.html

I'm running on Ubuntu 9.10 Drupal 6.19

mod_pagespeed installs easy. I changed the one line in the config file regarding ModPagespeedDomain to my domain, restarted Apache and it worked.

Speeds were blazing. Problem was, that my site viewed in IE8 or on my iPhone in Safari only rendered a single node and not the entire page. FireFox worked no problem and was extremely fast. I used WebPageTest.org to do the testing and the results were jaw dropping.

So.. I began to play with the configurations, both in admin/settings/performance and also in the mod_pagespeed config file.

Enabling and disabling the settings for built-in Drupal performance caching did make a difference in speed, but none of the options fixed my IE8 and Safari rendering issues.

The only thing that worked was disabling the rewrite_javascript line inside the mod_pagespeed config.

ModPagespeedDisableFilters rewrite_javascript

Then everything worked correctly. The PROBLEM is that my blazing speed increases stopped when I disabled that piece of the mod_pagespeed.

Anybody else playing with this? Are there some conflicting module .js out there that the rewrite in mod_pagespeed is having issues with?

Please post your results here.

Thanks

Comments

leilyrken’s picture

It seems that there is already an article and that they report the same problem with Add Head and Minify JavaScript.

http://drupal.org/node/961510

I just start testing, I will post my result. The crazy thing is we spend 5 days on moving our system from private file system to public file system with a control on some private folder mainly to get the JS and CSS aggregation and they just release the module that do it automatically....

sterndata’s picture

Installed on my personal system. So far, so good. One segfault in an httpd process. Is it related? I'm not sure.

I installed it on a production system that hosts both Drupal and a static HTML site and set it the domain to point to just the static HTML virtual host. There were some Drupal issues, but again, it could have been user error. I'm going to reinstall it there over the weekend and see what happens.

sligocki’s picture

We've completely rewritten the Javascript minification in the last few days to deal with JS errors we've seen. Please follow the progress at mod-pagespeed-discuss@googlegroups.com. We are testing and will have this change out ASAP.

mod_pagespeed dev-team

yareckon’s picture

I appreciate you keeping us in the loop. Glad to hear that it is full speed ahead on this exciting project.

Would be great to try to get a Debian maintainer for the package so it would be available in the repos. Dunno if you guys employ any DDs you can pull in:) ?

mkoistinen’s picture

According to the pagespeed FireBug plugin and mod_pagespeed companion, I am seeing a score of 95-98% on most of my D6 sites. Nice.

The areas that, according to the plugin, need improvement are:

  • Specify a Vary: Accept-Encoding header
  • Defer loading of Javascript
  • Use efficient CSS selectors

I do not use a private filesystem on any of these sites, so my need to try to recapture performance lost to CSS and JS aggregation is lessened.

Interestingly, on one of my Drupal 7 sites, I have a lower score (90%) and some additional suggestions:

  • Combine external CSS
  • Combine external JS

Which is strange, because I do have Aggregate CSS/JS switched on. It appears that D7 has done some aggregation, but there are still multiple css and multiple js files remaining. It is very possible that D7 is being smarter than the pagespeed plugin here though, not really sure.

Clearly some of this is going to be implementation-specific (especially 'Use efficient CSS selectors')

I do use mod_pagespeed on some other, non-Drupal sites, and the performance for everyone and the convenience for the developer (me) is great. The Firebug plugin is also a great tool in my arsenal.

Prancz_Adam’s picture

I'm trying to get higher value in pagespeed test.

My site url is http://portfoliofotos.hu
I'm using mod_pagespeed, boost and AdvAgg.

3 css and a couple of js file left and I do not understand why. My score is 90 until now. I have made lot of enhancements.

Here is my htaccess conf:

<IfModule pagespeed_module>
  
    # Turn on mod_pagespeed. To completely disable mod_pagespeed, you
	# can set this to "off".
	ModPagespeed on
	
	# Direct Apache to send all HTML output to the mod_pagespeed
	# output handler.
	AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
    
	ModPagespeedLowercaseHtmlNames on
    ModPagespeedEnableFilters extend_cache
    ModPagespeedEnableFilters insert_dns_prefetch
	ModPagespeedEnableFilters add_head
	ModPagespeedEnableFilters add_instrumentation
	ModPagespeedEnableFilters make_google_analytics_async
	#ModPagespeedEnableFilters make_show_ads_async
	ModPagespeedEnableFilters flatten_css_imports
 
#
# Text / HTML
#
 
    ModPagespeedEnableFilters collapse_whitespace
    ModPagespeedEnableFilters convert_meta_tags
    ModPagespeedEnableFilters remove_comments
    ModPagespeedEnableFilters collapse_whitespace
    ModPagespeedEnableFilters elide_attributes
    ModPagespeedEnableFilters trim_urls
    ModPagespeedEnableFilters pedantic
 
#
# JavaScript
#

    ModPagespeedEnableFilters combine_javascript
    #ModPagespeedEnableFilters canonicalize_javascript_libraries
    ModPagespeedEnableFilters rewrite_javascript
    ModPagespeedEnableFilters defer_javascript
    ModPagespeedEnableFilters inline_javascript
  
#
# CSS
#

    ModPagespeedEnableFilters rewrite_css
    ModPagespeedEnableFilters combine_css
    ModPagespeedEnableFilters move_css_to_head
    ModPagespeedEnableFilters inline_css
    ModPagespeedEnableFilters inline_import_to_link
    ModPagespeedEnableFilters move_css_above_scripts
 
#
# Images
#
 
    ModPagespeedEnableFilters inline_preview_images
    ModPagespeedEnableFilters insert_img_dimensions
    ModPagespeedEnableFilters rewrite_images
	ModPagespeedEnableFilters convert_gif_to_png
    ModPagespeedEnableFilters recompress_images
	ModPagespeedEnableFilters recompress_jpeg
	ModPagespeedEnableFilters recompress_png
    ModPagespeedEnableFilters convert_jpeg_to_progressive
    ModPagespeedEnableFilters resize_mobile_images
    ModPagespeedEnableFilters sprite_images
    ModPagespeedEnableFilters lazyload_images
    ModPagespeedEnableFilters local_storage_cache
	ModPagespeedJpegRecompressionQuality 100
	#ModPagespeedEnableFilters responsive_images
	ModPagespeedEnableFilters resize_images
 
</IfModule> 		

I have still some issue with mod_pagespeed_beacon.