Mod_pagespeed Not doing any good for a Wordpress Site

1,018 views
Skip to first unread message

raju...@gmail.com

unread,
Dec 15, 2018, 12:01:55 AM12/15/18
to mod-pagespeed-discuss
After unsuccessful attempts with Wordpress Plugins, we have put in mod_pagespeed.

It changes the images name causing indexing and SEO problems.. as the name of the image is important for us.

It does help with html minification greatly..  but, css and js minification is not working.. too many http requests and scores are not good..

Current Configs:

 ModPagespeed on
 ModPagespeedEnableFilters collapse_whitespace,remove_comments
 ModPagespeedEnableFilters prioritize_critical_css


We are planning to disable  Core filters to get rid of the image rewrite - image name issues
ModPagespeedRewriteLevel PassThrough

Can somebody help with me with the filterename just for css and js minification ?

All we are trying to achieve here is HTML, CSS, and JS minification and lower the no# of HTTP requests.. we are not worried much about cache here, as we have CDN...  We cant defer CSS or JS anyway, as its breaking the site.. just the minification seems to be harder to achive.. suggestions pls!

Thanks!

François-Yves Prigent

unread,
Dec 15, 2018, 1:24:00 AM12/15/18
to mod-pagesp...@googlegroups.com
Hello guys, I think you all miss one parameter, the averall computing thing...
IT can help a lot, or deserve a lot . What matters is the % of computed things for each visitor.
We managed it by sampling our visitors, and hit like 2,8% conversion rate now.

Have fun,

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/1ec14b44-f186-4133-935d-6423d22ac7a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
François-Yves Prigent
Ecommerce Manager
Cherry paris

sh...@salonguru.net

unread,
Dec 17, 2018, 4:27:40 AM12/17/18
to mod-pagespeed-discuss
Hi, 

I run pagespeed over Wordpress and can say that it CAN work very well but you do have to be careful about the plugins - as you've found out.

Some plugin authors don't do things "properly" and write Javascript inline when it aught to be enqueued. When they do this, you'll end up with a pile of "function not defined" errors when Pagespeed re-writes the Javascript. The resolution to this is to take the Javascript funtions that are in the wrong order due to the and add them further up in the loading process by duplication. It takes time but can be done. Further to this, if you are using Visual Composer (Now Pagebuilder) forget it! They went into their own when they wrote that and it cannot be optimised by any plugin .. let alone pagespeed. If the image names are important there's not a lot you can do I don't think Pagespeed will always change the file extensions and add a hash if it compresses an image. 

Have you thought about adding an image sitemap? Submit that to Google via webmaster tools then the front end of your website can do what it likes, Google will always have a list of the unaltered images.

Shane :)





On Saturday, 15 December 2018 06:24:00 UTC, François-Yves Prigent wrote:
Hello guys, I think you all miss one parameter, the averall computing thing...
IT can help a lot, or deserve a lot . What matters is the % of computed things for each visitor.
We managed it by sampling our visitors, and hit like 2,8% conversion rate now.

Have fun,

Le sam. 15 déc. 2018 à 06:01, <raju...@gmail.com> a écrit :
After unsuccessful attempts with Wordpress Plugins, we have put in mod_pagespeed.

It changes the images name causing indexing and SEO problems.. as the name of the image is important for us.

It does help with html minification greatly..  but, css and js minification is not working.. too many http requests and scores are not good..

Current Configs:

 ModPagespeed on
 ModPagespeedEnableFilters collapse_whitespace,remove_comments
 ModPagespeedEnableFilters prioritize_critical_css


We are planning to disable  Core filters to get rid of the image rewrite - image name issues
ModPagespeedRewriteLevel PassThrough

Can somebody help with me with the filterename just for css and js minification ?

All we are trying to achieve here is HTML, CSS, and JS minification and lower the no# of HTTP requests.. we are not worried much about cache here, as we have CDN...  We cant defer CSS or JS anyway, as its breaking the site.. just the minification seems to be harder to achive.. suggestions pls!

Thanks!

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Raj

unread,
Dec 17, 2018, 9:09:31 PM12/17/18
to mod-pagesp...@googlegroups.com
Well, please share the configs.. all we wanted to achieve is minify and combine css and js, and reduce number of http requests.. thats seem like an impossible task here. Let alone removing render blocking css and js.

How come simple minify and combine not working?

To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.


--
François-Yves Prigent
Ecommerce Manager
Cherry paris

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/9723e25b-c7f1-47b2-a2ee-52ae59f31d35%40googlegroups.com.

Joshua Marantz

unread,
Dec 17, 2018, 9:18:39 PM12/17/18
to mod-pagespeed-discuss
Raj -- I think your desires are in conflict with one another :)

You said in your initial message that you don't want to change URLs, and then you said you also want to reduce the number of HTTP requests and do some combining. What URL should serve the combined URL? Or are you just saying you want to leave the image URLs alone but you are OK change JS and CSS URLs?

I think you should probably start with
   ModPageSpeedRewriteLevel OptimizeForBandwidth
that will leave all URLs alone; just minify contents. If you want to also enable CSS and JS inlining and combination you can then (after the RewriteLevel command) enable explicitly the combine_javascript, combine_css, inline_javascript, and inline_css filters.

If you want demos on what happens with all these features, be sure to check out https://www.modpagespeed.com/examples/




Raj

unread,
Dec 17, 2018, 9:24:42 PM12/17/18
to mod-pagesp...@googlegroups.com
Josh,

Thanks for the response ;) Not sure about that ;)

All I'm trying to achieve here here is minifying and combining, which will reduce no# of http requests when opening the website, thereby bumping page speed scores. Here is the latest I have now.. I'm yet to add another 4 java scripts.. which would shoot my page speed scores down..

<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedRewriteLevel PassThrough
ModPagespeedFetchHttps enable
ModPagespeedEnableFilters collapse_whitespace,remove_comments
ModPagespeedEnableFilters inline_css,inline_google_font_css,prioritize_critical_css,combine_css
ModPagespeedEnableFilters inline_javascript,combine_javascript
ModPagespeedEnableFilters inline_preview_images,lazyload_images
</IfModule>

How come this is not working? let me send the site URL separately to you. 

Joshua Marantz

unread,
Dec 17, 2018, 9:48:50 PM12/17/18
to mod-pagespeed-discuss
You've got a lot of filters enabled that do way more than what you say you want. Can you start your experiments by making a minimal set of filters? Your results will be easier to understand that way.

Also, enable the filter 'debug', which will annotate your HTML with comments indicating why an optimization failed, such as failure to fetch the original CSS or JavaScript files.

Raj

unread,
Dec 18, 2018, 6:18:31 AM12/18/18
to mod-pagesp...@googlegroups.com
We have start with minimal and kept adding.. spent lot of time but no luck.. How do I send the URL?

Raj

unread,
Dec 18, 2018, 9:04:03 AM12/18/18
to mod-pagesp...@googlegroups.com
Our site is SSL enabled at load balancer and HTTP on the web server/Apache... how do you guys minify and combine?

Joshua Marantz

unread,
Dec 18, 2018, 9:15:04 AM12/18/18
to mod-pagespeed-discuss
I'm guessing you are having an HTTP fetching problem. If you added the 'debug' filter, you should get some debug messages inserted as HTML comments. Also check the error log.

You might want to read https://www.modpagespeed.com/doc/https_support to understand how to make sure mod_pagespeed can fetch the assets for optimization. If you happen to have the CSS and JS files stored locally on the machine running the Apache server, consider using ModPagespeedLoadFromFile, which is described there. 

Reply all
Reply to author
Forward
0 new messages