Post Editor Initial Load Slow without Cache

[ad_1]

Note: I am not referring to lag while typing (especially with long-ish posts), which is a known and persisting issue.

I have noticed that the Gutenberg post editor takes an inordinate amount of time to load – well above 20 seconds. A quick examination revealed this happens because it’s fetching 10+ MB worth of scripts and stylesheets (there’s an interesting discussion there, beyond the scope of the present message). In other words, loading the editor, going back to the dashboard, and coming back to the editor is much faster (3-4 seconds).

My .htaccess is configured to cache scripts and css for two weeks, but this isn’t respected. I don’t know what’s going on under the hood of Gutenberg (and I’m not sure I want to know, either 😁)

WordPress version 6.4.2, PHP 8.3. I’m not using any plugins except Yoast (up to date), and the site utilizes a custom theme I’ve designed myself. The frontend is lightning-fast (96-99 performance on PageSpeed) and the dashboard otherwise quite OK. It’s the Gutenberg editor that causes issues.

My questions:

  1. Is there any known github bug/discussion on the topic I could follow?
  2. Are scripts/stylesheets on Gutenberg not deferred? It feels weird the editor uses render-blocking scripts for 20+ seconds.
  3. Any other info on the topic, welcome!

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer