wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

Slow Performance When Editor Contains Gallery Blocks

Open edwinho89 opened this issue 3 years ago • 4 comments

Quick summary

When editing posts with gallery block, typing appears to be slowing down, or stuttering when typing them.

While editing posts without gallery block, typing appears to be handling normally without the slowness.

Steps to reproduce

  1. Create a new post, add some contents like paragraph blocks as you would.
  2. Add gallery block with multiple images.
  3. Add more contents after adding the gallery block with images.

What you expected to happen

There should be any obvious lag or stutter when adding more contents into editor.

What actually happened

Existing video from previous HE and user: https://d.pr/v/sChZVC https://www.youtube.com/watch?v=sCiOKvse9Lg&ab_channel=FatManLittleTrail

Most recent video when editing older, published post https://fatmanlittletrail.com/wp-admin/post.php?post=40900&action=edit : https://d.pr/v/h2XvE0

Context

Attempts were made to deactivate other plugins except JP, leaving only Jetpack and Twenty Twenty One theme, and is reproducible.

In the past, user did not experienced this, so it may be relating to recent updates on JP or WordPress introducing this issue..

I see there may be something to do with how the jquery query https://fatmanlittletrail.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 loads, as from browser Network log shows images are being loaded repeatedly.

I'm not able to reproduce similar issues on my test site, however it is somewhat consistent under user's AT site.

Reported in 4711628-zd-woothemes

Simple, Atomic or both?

Atomic

Theme-specific issue?

No response

Browser, operating system and other notes

No response

Reproducibility

Intermittent

Severity

One

Available workarounds?

Yes, easy to implement

Workaround details

  • Remove the existing gallery block temporarily, add contents, then add gallery block back.
  • Add all contents there is, before adding gallery block at the end of post.

edwinho89 avatar Jan 25 '22 08:01 edwinho89

Just played into this ticket -> dropping in to say we're well past SLA (-20h) even with a recent message send by Richard yesterday. I'm setting this on hold for 3h for now.

IoanaAMuresan avatar Feb 01 '22 07:02 IoanaAMuresan

I was able to replicate this on a local dev install but only when the CoBlocks plugin was activated. The page performance seems fine with a Gallery block, but as soon as you activate CoBlocks there are long delays in typing and CPU usage of the tab goes 100%+

glendaviesnz avatar Feb 03 '22 00:02 glendaviesnz

I have logged an issue with CoBlocks about this.

glendaviesnz avatar Feb 03 '22 02:02 glendaviesnz

I can confirm that the issue still happens on an atomic site.

formosattic avatar Feb 15 '22 09:02 formosattic

I just now tested this on Simple and Atomic, the latter with and without CoBlocks blocks on the page. I am not seeing any issues.

@edwinho89 do you think we can close this issue down?

Edit. Edwin is no longer with Automattic. I am going to close this down given such a big gap since the last case and that I cannot reproduce it.

mpkelly avatar Apr 19 '24 06:04 mpkelly

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 4711628-zen

github-actions[bot] avatar Apr 19 '24 06:04 github-actions[bot]