Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Minifying CSS

Featured Replies

Hi All,

 

After installing and running WP-Minify on my Wordpress installation, PageSpeed for Firefox is still throwing back this:

 

Minify CSS

Minifying the following CSS resources could reduce their size by 3.0KiB (23% reduction).

Minifying http://www.voltronik.co.uk/blog/wp-content/themes/v3/style.css could save 3.0KiB (23% reduction). See optimized version or Save as.

 

I've even added the exact line to my CSS in my WP-Minify settings in the hope that if it's missing it somehow, it will force it to minify that file.

I'm just trying to get my PageSpeed score to 100 really. At the moment i'm on 95.

 

Any help or advice much appreciated!

-Jack

that says that you need to replace your style-sheet with the optimized one, always backup tho, good luck!

  • Author

that says that you need to replace your style-sheet with the optimized one, always backup tho, good luck!

 

Thanks Ben.

I know that but i like my stylesheet the way it is. I find that the 'optimised' version can make the CSS file's layout illogical.

 

Does that WP-Minify won't ever do as good-a-job as PageSpeed in terms of minification?

You don't need to replace your Stylesheet. The whole point of WP Minify is that it picks up all the CSS and shrinks it before being output to the browser so you don;t have to.

 

Double check your WP Minify settings. Make sure "Enable CSS Minification" is checked, that you've got the right link to your CSS file in the Include field (not Exclude) and go into Advanced Mode and hit the "Manually Clear Cache" button.

  • Author

You don't need to replace your Stylesheet. The whole point of WP Minify is that it picks up all the CSS and shrinks it before being output to the browser so you don;t have to.

 

Double check your WP Minify settings. Make sure "Enable CSS Minification" is checked, that you've got the right link to your CSS file in the Include field (not Exclude) and go into Advanced Mode and hit the "Manually Clear Cache" button.

 

Hi Spitfire,

 

I've already done everything you've suggested with the WP-Minify plugin - all has been checked and double checked :)

 

The talk relating to the replacement of the stylesheet is from the Google PageSpeed plugin for Firefox.

It recommends using it's 'optimised' version to save 3 kb in file size (see more info in my original post).

However, as already mentioned, i already like my CSS file in it's currently logical (to me) state and i don't want to overwrite it with PageSpeed's 'optimised' version.

PageSpeed is obviously running after the page has loaded which includes the so-called optimised CSS file served by WP-Minify.

I'm guessing then that despite WP-Minify doing it's thing to my javascript/html/css, PageSpeed is still able to optimise the CSS further.

 

Would you agree?

No, I don't. The process of minifying CSS is the same no matter what program you use to do it - it's just removing spaces, line-breaks and combining files. PageSpeed does it in exactly the same way as WP Minify.

 

Looking at the source code of your site, your HTML has been minified but your CSS hasn't. Currently, your link to your stylesheet is:

 

<link
rel="stylesheet" href="http://www.voltronik.co.uk/blog/wp-content/themes/v3/style.css" type="text/css" media="screen" />

 

If it has been picked up and optimised by WP Minify, it would have created a new CSS file and the link would be along the lines of:

<link
rel='stylesheet' href='http://www.voltronik.co.uk/blog/wp-content/plugins/wp-minify/min/?f=wp-content/themes/v3/style.css&m=1297176945' />

  • Author

No, I don't. The process of minifying CSS is the same no matter what program you use to do it - it's just removing spaces, line-breaks and combining files. PageSpeed does it in exactly the same way as WP Minify.

 

Looking at the source code of your site, your HTML has been minified but your CSS hasn't. Currently, your link to your stylesheet is:

 

<link
rel="stylesheet" href="http://www.voltronik.co.uk/blog/wp-content/themes/v3/style.css" type="text/css" media="screen" />

 

If it has been picked up and optimised by WP Minify, it would have created a new CSS file and the link would be along the lines of:

<link
rel='stylesheet' href='http://www.voltronik.co.uk/blog/wp-content/plugins/wp-minify/min/?f=wp-content/themes/v3/style.css&m=1297176945' />

 

Ah i see!

 

Well the exact URL for my CSS (http://www.voltronik.co.uk/blog/wp-content/themes/v3/style.css) is in the WP-Minify to include area under CSS so it should be doing it.

Would there be a reason as to why it wouldn't be doing it?

I have gzip turned on for all fonts/html/css/javascript. Could that be causing it to not work or would that be a step after the WP-Minify plugin has worked on it?

I am also running WP-Super Cache.

 

-Jack

No, Gzip shouldn't affect it.

 

It a could be a caching issue with WP-Super Cache. Try going into the settings and manually clearing the cache in there to make sure it's not outputting an old version of the page.

Edited by Spitfire

  • Author

No, Gzip shouldn't affect it.

 

It a could be a caching issue with WP-Super Cache. Try going into the settings and manually clearing the cache in there to make sure it's not outputting an old version of the page.

 

Hi Spitfire,

 

Tried that for both WP-Minify and WP-Super Cache and unfortunately, still not working. Very strange!

 

Thanks,

-Jack

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.