- This topic has 20 replies, 4 voices, and was last updated 1 year, 6 months ago by David.
January 22, 2021 at 1:03 am #1628881Mike
Hello Ahrefs says the css is to big, ive done everthing i can, and checked everything 100 times, but still getting the massage css is to big, how can i fix that? please help Thanks gr MikeJanuary 22, 2021 at 1:35 am #1628917ElvinStaffCustomer Support
You can use caching and optimization plugins such as W3 Total cache or Autoptimize to minify your CSS.
Minification is actually recommended by Ahref’s documentation here:
A wise man once said:
"Have you cleared your cache?"January 22, 2021 at 2:41 am #1628991Mike
I already use autoptimize, still problem is thereJanuary 22, 2021 at 2:49 am #1629001DavidStaffCustomer Support
your cache plugin is combining all stylesheets into 1 file – which is over 75kb in size. Disable any combine/aggregate CSS file options. Your server is running HTTP2 so it can handle many concurrent file requests, so lots of small files is better than one huge file.January 22, 2021 at 2:54 am #1629008Mike
Hi David, i see css option then css combine, so disable that one? is that the one? Thanks mateJanuary 22, 2021 at 2:58 am #1629017Mike
I think ive done it, hope soJanuary 22, 2021 at 3:05 am #1629023DavidStaffCustomer Support
Yep – you now have 4 x Minified CSS files, however two of them are over 30kb…. not sure if the site just has some really large CSS files or their still being combined. If you can disable autoptimize/wp fastest cache entirely i can take a look to see what the CSS files its requesting.January 22, 2021 at 3:06 am #1629024Mike
Yes it worked thanks DavidJanuary 22, 2021 at 3:07 am #1629026Mike
O did not see your last message, oke i turn it offJanuary 22, 2021 at 3:08 am #1629027Mike
there are off nowJanuary 22, 2021 at 3:13 am #1629030DavidStaffCustomer Support
Ok uncached the site is loading 11 CSS files, the largest is 20kb from the EditorPlus Plugin, the next is 17kb from the business review rating plugin. So something is till combining them…. but if the AHrefs test past with that last setup then i would probably leave it at that.January 22, 2021 at 3:14 am #1629033Mike
Oke i leave it like this for now, thanks david for your support perfectJanuary 22, 2021 at 3:24 am #1629047DavidStaffCustomer SupportJanuary 29, 2021 at 1:36 am #1637839Yvette
I just received a site Audit from Ahrefs on my webpage: https://www.laaneoversikten.no/. The site audit says my CSS file is too big. According to Ahrefs it is the Autoptimize files that are the problem.
I am using Autoptimize filled in with the criteria from https://docs.generatepress.com/article/configuring-autoptimize/
Do I understand it correctly from the comments above that I should check off the following under CSS Options:
– Aggregate CSS-files? (Aggregate all linked CSS-files? If this option is off, the individual CSS-files will remain in place but will be minified)
– Also aggregate inline CSS? (Check this option for Autoptimize to also aggregate CSS in the HTML)
Thanks/YBJanuary 29, 2021 at 2:18 am #1637872Mike
Yes Yvette, it worked for my.
- You must be logged in to reply to this topic.