Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

Jetpack: Atomic: JITMs significantly slowing down wp-admin loads #96940

Open ebinnion opened 2 hours ago

ebinnion commented 2 hours ago

Quick summary

As I've loaded my wp-admin recently, I've noticed that it felt pretty slow. After installing query monitor, I noticed that there is often a JITM request that is happening during page generation. This call seems to often take ~3 seconds, but I recently had one that took over 6 seconds.

I haven't tracked down the source of the issue. My understanding is that JITMs previously loaded after the initial page load, so I'm not sure what exactly changed.

Of note, the screenshot that I'm sharing says the plugin that made the request is Jetpack Boost. But, keep in mind that with Jetpack packages, we could be using a package loaded from one of several Jetpack plugins that may be running on my site. Take note of the calypso:sites:sidebar_notice, which I assume is added by Atomic code somewhere.

Image

This occurred on eric.blog. For debugging purposes, I'm glad to give any a11n a temporary user account on that site.

Even worse than the slow request is that if I refresh the page, I can get the request to fire again multiple times.

cc @oskosk @inaikem for awareness. Also, hi friends. 👋

Steps to reproduce

  1. Have an atomic site
  2. Install Query Monitor or some other debug that shows HTTP API calls (perhaps covered by debug bar when proxied)
  3. Go to wp-admin

What you expected to happen

No page blocking http calls to be made.

What actually happened

The page blocking http call is made.

Impact

Some (< 50%)

Available workarounds?

No but the platform is still usable

If the above answer is "Yes...", outline the workaround.

No response

Platform (Simple and/or Atomic)

Atomic

Logs or notes

No response

github-actions[bot] commented 2 hours ago

OpenAI suggested the following labels for this issue:

inaikem commented 1 hour ago

Greetings! 👋 I've bumped this for Groundskeeping review: p1733117313873469-slack-C07GZ2UA3TN