Bug #21903
closedBlock editor loading painfully slowly
0%
Description
Since the Reclaim migration, the Block Editor loads painfully slowly. It seems to be problematic across all sites.
It seems like part of the problem might be that browsers aren't properly caching static assets. Loading the Block Editor requires hundreds of JS, CSS, image requests, and it seems like all of them are hitting the server.
Jeremy, would you see if you can reproduce the slowness and try to nail down some possible paths forward?
Updated by Jeremy Felt about 1 month ago
I'm still digging at a couple scripts that seem to be causing a slowdown, but in the meantime, I think there's a Cloudflare config change that Reclaim can make.
All static assets should be cached via Cloudflare, ideally. Right now:
wp-includes/*
assets are cached through CFwp-content/mu-plugins/*
assets are cached through CFwp-content/themes/*
assets are cached through CF
wp-admin/*
assets are not cached through CFwp-content/plugins/*
assets are not cached through CF
I can't think of a reason why wp-admin
and wp-content/plugins
would not be cached, but there may be a conflict with another rule that causes the bypass. Cloudflare is responding with a DYNAMIC
status on these, which I believe means that it never intended to cache them rather than the cache is missing.
I'll follow up soon with a couple other things. :)
Updated by Boone Gorges about 1 month ago
- Target version changed from 2.5.2 to 2.5.3
Updated by Boone Gorges 19 days ago
- Target version changed from 2.5.3 to 2.5.4
Reclaim has made the changes to Cloudflare assets, which seems to help. Bumping this ticket to the next milestone in case Jeremy has more items to follow up with.