Before I added Google Ads, my pagespeed was incredibly close to 90+, flunctuating between 85-90 then on Mobile was just a measly 65-75
Not too bad for now. How did I accomplish it.
1. Bulk Optimize your images with EWWW Image optimizer.
2. Use the regenerate thumbnail plugin to regenerate your thumbnails so that they can fit properly in the blocks.
CSS Minification made easy.
3. Go to GTMetrix and Analyse your URL.
4. You should see a Minify CSS followed by a percentage. Click on it to see more of the recommendation.
5. You will see your theme’s style.css in my case it was /…/Newspaper/style.css?ver=6.6
6. Click on see optimized version. It will open in a new tab with your CSS minified.
7. You select all ( Ctrl+A) and Copy (ctrl+C) then go to your theme editor (ie Appearance> Editor) in WordPress. then your style.css, you select all again and Paste (Ctrl+V).
That is it!.
This is just my way of giving back to everyone here that finds time to answer my silly questions and help me out in their little ways. Tagdiv support team, you guys rock, and Chris S as well.
Oh, and my site, Factwide, is proudly Tagdiv Newspaper!.
You are welcome. I struggled with it and learnt quite a lot.
I sincerely hope it helps others too.
Hello,
that is odd, I was using EWWW as an alternative to WP Smush.it Plugin, because they limit the optimization to about 50 pics at a time. I even used it months before I updated to Newspaper.
So I suggest trying it out, and if it breaks your site, then you if you have access to your server (i.e like VPS and not shared hosting), you can check to ensure it has jpegtran, optipng, pngout and gifsicle installed on your Linux server but the plugin will attempt to install jpegtran, optipng, and gifsicle automatically for you. This requires that the wp-content folder is writable by the user running the web server though.
I hope this helps, if it doesn’t I am still here to help you.
-
This reply was modified 10 years by
Akpan Promise.
Hello,
Plugin compatibility issues change overtime as the theme and the plugins get updated. Code gets changed and improved. The best thing to do is try it out and see how it works.
P.S. if you tried it on newspaper 4 that is a whole different matter as it was a whole different theme. Newspaper 6 was built from scratch.
Thank you.
Silly question, but wouldn’t you have to do this copy/paste procedure every time Tagdiv releases a new version of the theme?
I’m currently relying on CloudFlare to minify the files in their cache since W3 Total Cache minification breaks the theme. I’m planning to experiment with Autoptimize to see if it’s any better.
The CSS Minify may not be needed because these days, The CSS files are optimized and minified already.
I recommend and use Cloudflare, but not W3TC though, don’t use anything except WP Super Cache, you won’t like the results.
I have tried them all except WP-Rocket, I am yet to test that plugin.
Cheers
Hello Akpan
I would like to minify Javascript, CSS and HTML because my pagespeed score is not enough good. I would like to know if I I can use the same GTmetrix way to minify Javascript and HTML as well.
To do that, Do I must to replace the optimized file instead the former?
Thanks
Hello Albert, I advise you use Cloudflare, they make your site as fast as possible.
I’m using W3TC and Cloudflare with Flexible SSL enabled. I’ve disabled minification on Cloudflare and am using W3TC to reduce the number of requests. I do basic minification of CSS and html, but not JS since minifying JS breaks images on my front page. I also combine all CSS into a single file and JS into a single file to reduce the number of requests to my server, which also has the benefit of removing query strings so I can be sure all my CSS, JS, and HTML is being cached correctly by any caching proxies between me and my readers. Minifying html also improves pagespeed slightly since Cloudflare doesn’t cache or optimize HTML.
This also has the added benefit of not having to do a manual process every time I update my Newspaper theme.
Obviously, I’ve also disabled Cloudflare in the W3TC plugin so it doesn’t know I’m using Cloudflare. This means if I do feel the need to clear my Cloudflare cache for some reason, I have to do it manually from the Cloudflare website.
-
This reply was modified 10 years by
Solstyce.
Hello
So in this case, do you recommend to me using cloudfare to minify instead the way you said before with GTmetrix? Does it have any risk to replace files which need to be solved?
I have a 95 % score in PageSpeed GTmetrix and 87 % YSlow, but when I check my website in google pagespeed insight, the score is lower, and I don´t know exactly if I should solve these issues.
Thanks