Glad to help. You can disable those frontend Gutenberg scripts by toggling open the “More Tools” settings. Then uncheck the box that says “Enable Frontend”.
Thank you for your quick reply. I did disabled it now cleared cache etc, but Lighthouse keeps reporting that these files are being loaded. I see them in “Remove Unused CSS” Section of the lighthouse.
There are 4 css files that are being loaded but I use 0 code from them. All of them are in “dist” directory which as far as I can understand is related to Gutenberg.
The list of files are:
../dist/block-library/editor.min.css
../dist/components/style.min.css
../dist/block-library/style.min.css
..dist/block-editor/style.min.css
With the “Enable Frontend” option *unchecked*, I am not seeing any of those files included using the default WP Twenty Twenty theme. So it could be theme-related, have you tried testing your theme?
It worked for me …I had a rough time with Gutenberg, It messed up my site
A big thank you!
Marius
I am getting render-blocking codes as well. (see below) how can I fix them?
…block-library/style.min.css?ver=5.4.2
…css/unsemantic-grid.min.css?ver=2.4.2
…generatepress/style.min.css?ver=2.4.2
…css/mobile.min.css?ver=2.4.2
…css/main.css?ver=1.0.0
…css/style-min.css?ver=1.10.0
…css/sticky.min.css?ver=1.10.0
…css/navigation-branding.min.css?ver=1.10.0
…jquery/jquery.js?ver=1.12.4-wp
…jquery/jquery-migrate.min.js?ver=1.4.1
…js/ajax-login-script.js?ver=5.4.2
…js/frontend.min.js?ver=6.2.0
…css/style-min.css?ver=1.1
@decadebetween Disable Gutenberg plugin can only help with the block-related scripts and styles. For all of those others that you list, you will need to contact a developer who can help.
Hi Jeff,
The plugin doesn’t seem to be working on the homepage the block-related styles and scripts are still loading. We have the homepage set to display our latest posts. The plugin works on ever page.
Thank you.
Hi @adamwrightdatamark,
Make sure that the setting, “Enable Frontend” is disabled, would be the first thing to check.
Thanks for the quick reply Jeff, yes that setting is unchecked.
What are the paths and names of the files that are getting loaded?
With default WordPress, the only block-related asset loaded on the frontend is:
/wp-includes/css/dist/block-library/style.min.css
When the DG “Enable Frontend” setting is unchecked, the plugin will disable that specific file from loading. All other scripts and styles are added either via your theme or some plugin(s).
It looks like the files you listed are from some other source, like “nux” maybe your theme? Try switching to the default WordPress theme and check if they are still loaded.
They don’t look like WP core scripts. You can check by:
– Deactivating all plugins
– Switching to the default WP theme
OR you can set up a new WP install and leave everything at defaults (theme, plugins, etc.).
Thank you for the quick reply Jeff. I was checking because I saw them on https://wordpress.org/support/wordpress-version/version-5-5/ I will try your recommendations.