I tried adding following rules in my .htaccess file. it modifying my images URL in source code. I only want to use PageSpeed Module for js and CSS files in the source code.
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters insert_dns_prefetch
</IfModule>
Kindly help me to use proper rules.
Theme has nothing to d with mod_pagespeed.
This is something managed at hosting level, and should be optimized for WordPress in general. Do search online f or how to setup mod_pagespeed to work with WordPress.
Also, see my thread in the docs > tutotorials > DIY > best of forums on site optimization to see my settings.
I don’t recommend using mod_pagespeed for messing with CSS and JS files, as it is more likely to break stuff with WordPress, jquery, plugins, theme, etc.
Very much a trial and error — you need to test the settings for your own site, plugins, hosting, platform, etc., and then see how it works by viewing your page source, testing page speed insights, gtmetricx test, etc.
Kindly check the source code of Newspaper theme Demo view-source:http://demo.tagdiv.com/newspaper/
They using pagespeed to deliver some JavaScripts and CSS only. I have tried adding pagespeed in .htaccess but it also delivers images (PNG, jpg, jpeg) too. So I just want to know to deliver only JavaScript and CSS
Hello sir, I have followed all the possible tutorials and tried to optimise my website http://www.snaxzer.com/.
But I am not getting satisfactory page load time.
If you can please have a look at my website and guide me possible required modifications.
Thank you:)
Sorry…. I don’t work here sorry.
You can view my tutorials in the DIY on optimizing the theme with all the various settings I use to get 95+ on desktop and mobile. But mod_pagespeed is just a tiny part of that.
Mod_pagespeed can also be optimized on server which – again, has nothing to do specifically with this theme. For example, is the server using opcache with mod_pagspeed ? Are all the default filters turned on?
TagDiv folk might be willing to share their settings. But, again this is not a theme related issue.
Mod_pagespeed alone won’t fix all the optimizations needed for fastest site speed/loading, etc. — it’s a “helper” …
It does look like you’re using my settings from my tutorial and posts here, so good start. You need to experiment with the other filter settings. Again, I don’t suggest doing any of the merge/move CSS/JS options, as I found it breaks things. Your mileage may vary đ
See:
https://developers.google.com/speed/pagespeed/module/config_filters#level
-
This reply was modified 10 years by
simchris.
Hello snaxzer,
Unfortunately, page speed is something you will have to adjust yourself. There is no âpromised speedâ as this depends on lots of things starting with your server. You need to optimize your site by following this guide: https://forum.tagdiv.com/how-to-make-the-site-faster/
The guide shows exactly the steps needed to remove render block js and CSS. There is no easier way to explain it. Please follow every step closely and keep in mind that speed booster has a compatibility list for plugins: https://forum.tagdiv.com/topic/incompatible-plugin-detected/
We canât offer speed customization services at the moment so if you still need guidance on this or youâre not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you. Also, as you can see in our tutorial, these kinds of information are addressed only for ADVANCED USERS.
Thank you for your understanding!