Project

General

Profile

Actions

Bug #21903

closed

Block editor loading painfully slowly

Added by Boone Gorges about 2 months ago. Updated 5 days ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
-
Target version:
Start date:
2025-01-28
Due date:
% Done:

0%

Estimated time:
Deployment actions:

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?

Actions #1

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 CF
  • wp-content/mu-plugins/* assets are cached through CF
  • wp-content/themes/* assets are cached through CF
And
  • wp-admin/* assets are not cached through CF
  • wp-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. :)

Actions #2

Updated by Boone Gorges about 1 month ago

  • Target version changed from 2.5.2 to 2.5.3
Actions #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.

Actions #4

Updated by Boone Gorges 5 days ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF