• gack304

    (@garycook304gmail)


    Hello. Not sure if this is the correct place to ask this, if not i apologise in advance. I’m having some trouble with css on a site i built. when i check google pagespeeds it tells me there is css that needs minifying and it is also unused but i cannot locate it nor do i know what to do with it to resolve the error. I am a bit of a beginner with CSS, The wordpress version is up to date, i use wp rocket and jetpack on the site. Any help with this would be really appreciated. I do have some screenshots but unable to upload them for some reason.

    Thanks in advance

    Regards

    Gary

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator threadi

    (@threadi)

    Try one of the many optimization plugins. Here is section in a longer article about it: https://wordpress.org/documentation/article/optimization/#minimizing-plugins

    @garycook304gmail are you certain the solution to the problem you are facing is minified css?

    Thread Starter gack304

    (@garycook304gmail)

    Thank you for the replies.

    @magaliechetrit when i wrote this it was but i have since been on to wp rocket and regenerated critical css and now i am getting the remove unused css. it appears to be a list of google fonts that i think are for different languages. i have tried various plugins, some completely mess up the site visually on the front end, the one i am using now is wp rocket but it never seems to completley resolve the issue which is why i am looking to try and defer it so it is not above the fold or if it is not needed get rid og it alltogether.

    I don’t recommend solving the problem with new plugins.

    Not knowing precisely what the problem is, the best way to diagnose the problem is to turn off all the plugins and then turn on a plugin at a time while checking for that problem.

    Moderator threadi

    (@threadi)

    Please contact the WP Rocket support, you have bought it and they can help you (I have already had good experiences with them): https://wp-rocket.me/support/

    Please note that WP Rocket is a commercial product. Questions about commercial products are not allowed here in the forum.

    Thread Starter gack304

    (@garycook304gmail)

    yes i don’t want to bloat the site with plugins if i can help it. this is a small snippet of the list of fonts but it’s a much much longer list than this. it literally goes on and on. I can’t see a href lang code anywhere so i don’t know why this css has appeared in the head section.

    /* cyrillic-ext */

    @font-face {

    font-family: ‘Raleway’;

    font-style: italic;

    font-weight: 100;

    font-display: swap;

    src: url(https://fonts.gstatic.com/s/raleway/v28/1Ptsg8zYS_SKggPNyCg4QIFqPfE.woff2) format(‘woff2’);

    unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;

    }

    /* cyrillic */

    @font-face {

    font-family: ‘Raleway’;

    font-style: italic;

    font-weight: 100;

    font-display: swap;

    src: url(https://fonts.gstatic.com/s/raleway/v28/1Ptsg8zYS_SKggPNyCg4SYFqPfE.woff2) format(‘woff2’);

    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;

    }

    /* vietnamese */

    @font-face {

    font-family: ‘Raleway’;

    font-style: italic;

    font-weight: 100;

    font-display: swap;

    src: url(https://fonts.gstatic.com/s/raleway/v28/1Ptsg8zYS_SKggPNyCg4QoFqPfE.woff2) format(‘woff2’);

    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;

    }

    /* latin-ext */

    @font-face {

    font-family: ‘Raleway’;

    font-style: italic;

    font-weight: 100;

    Thread Starter gack304

    (@garycook304gmail)

    @threadi, Thank you. I am not looking for support for wp rocket, i would just like for someone to point me in the direction of resolving this issue through maybe defering the css or removing it if possible

    Moderator threadi

    (@threadi)

    Disable WP Rocket and check out the article I linked above. There are some possibilities mentioned.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Minify CSS for google pagespeed’ is closed to new replies.