- This topic has 5 replies, 3 voices, and was last updated 1 year ago by David.
March 4, 2020 at 7:54 am #1184902David
Lately, I am getting mobile usability warnings in Google Search Console.
From what I can see, some style sheets aren’t being loaded (Unknown error).
The number of errors for a page varies among different trials (when using the Live Pagetest). Sometimes enough gets loaded so I don’t get a mobile usability warning.
I tried Google’s robots.txt testing tool and it can access the stylesheets.
Also, I seem not to experience any issues when using the standard mobile usability tester.
From several web discussions I gather that many users experience this, in particular since the new search console (with various themes and WordPress installations); some people have been successful by inlining critical stuff.
I also had the CSS files combined into one using Breeze (a Cache plugin that can also minify and combine CSS and js files) to reduce the number of requests, but that doesn’t solve the problem. Then that large CSS file doesn’t get loaded.
Now I am thinking to load theme stylesheets plus the GP premium plugin stylesheet(s) first and then normal plugin stylesheets like Tablepress, Contactform 7, Table of content etc. after that, hoping that this will allow for a more consistent proper rendering of the page in Googlebot.
How could I achieve this?
Manu thanks for reading.March 4, 2020 at 7:36 pm #1185396TomLead DeveloperLead Developer
You would need to dequeue those stylesheets using
Then you can re-add them using
wp_enqueue_style(), and set the in_footer parameter to true: https://developer.wordpress.org/reference/functions/wp_enqueue_style/
However, it’s best to check with the developers of those plugins – there may be a better way of doing it that will be more update-proof.March 23, 2020 at 7:34 pm #1208017David
Thanks a lot for your reply. I have experimented with this and decided not to go down this route for the time being.
One final question:
Could it be that GeneratePress inlines part of the CSS?
It looks like that when I look at the Web response in Google console (or is there some other plugin at work?).March 24, 2020 at 5:41 am #1208268DavidStaffCustomer SupportMarch 24, 2020 at 6:06 am #1208302David
Al the best.March 24, 2020 at 6:11 am #1208305
- You must be logged in to reply to this topic.