Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lag when switching between block and classic editor on long posts #714

Closed
hypest opened this issue Mar 7, 2019 · 6 comments
Closed

Lag when switching between block and classic editor on long posts #714

hypest opened this issue Mar 7, 2019 · 6 comments

Comments

@hypest
Copy link
Contributor

hypest commented Mar 7, 2019

Originally reported here.

Switching to Classic editor makes the app hang (ANR) for a bit until everything is loaded and then it works alright (scrolling fast and all) but you do have to wait a fair 10-15 seconds for the thing to be responsive. It hangs, goes black for a second, appears (but you can't scroll or anything) and have to wait.

Here's the Post used (it's basically the demo Gutenberg content pasted several times) https://selfhostedmario.mystagingwebsite.com/2019/03/welcome-to-the-gutenberg-editor/

For the record, using the content mentioned here wordpress-mobile/gutenberg-mobile#672 on Aztec makes it take a long time to load and be responsive, same as with the aforementioned Gutenberg post when switching and opening it on the Classic Editor.

On Aztec, switching to HTML mode and trying to add / modify text there is super slow.

@hypest hypest added this to the Future milestone Mar 7, 2019
@mzorz mzorz changed the title [Androd] Lag when switching bewteen block and classic editor on long posts [Android] Lag when switching bewteen block and classic editor on long posts Mar 7, 2019
@hypest hypest changed the title [Android] Lag when switching bewteen block and classic editor on long posts [Android] Lag when switching between block and classic editor on long posts Mar 14, 2019
@designsimply
Copy link
Contributor

@cassgenerator
Copy link

Looking into this issue in WordPress-Android I have found that the majority of the time taken when switching to the "classic editor" is caused by Aztec. I have logged an extensive issue in that repository highlighting some areas to look into for performance improvements.

I would advise closing this issue as it doesn't look like this is primarily related to Gutenberg-mobile.

@hypest
Copy link
Contributor Author

hypest commented Mar 28, 2019

👋 @drspaceboo , thanks for diving into this one! Reason this ticket was originally created here was for better tracking within the gutenberg-mobile GitHub project and because it refers to the whole flow of switching editors on the fly. Switching editors on the fly encompasses another slow process (the saving of data) and perhaps more reasons so, I'd recommend we keep this ticket open anyway. When we fix the Aztec slowness side we can update this ticket too. How's that sound?

@cassgenerator
Copy link

Makes sense to me 💯

@KokkieH
Copy link

KokkieH commented Aug 13, 2019

We have a user report of this issue in https://en.forums.wordpress.com/topic/wordpress-android-app-3/

My WordPress app’s version is 12.9 and my android version is 5.0.2 and my phone is HTC Desire 820s dual sim.

With large text (this one i’m working on is approximately 11 pages long) while switching between classic and block editor the app seems to struggle with it for maybe 10-15 seconds.
And when it finally opened the classic editor i tried to continue editing yet unfortunately it kept lagging so much so i would type and the words would appear on screen maybe 6-10 seconds later and sometimes longer even though it didn’t lag at all when i switched back to the block editor and it worked smoothly.

@SergioEstevao SergioEstevao changed the title [Android] Lag when switching between block and classic editor on long posts Lag when switching between block and classic editor on long posts May 4, 2020
@hypest hypest removed this from the Future milestone Jun 9, 2020
@hypest hypest added the Project: Flow improvements Revise/enhance various editing flows label Jun 9, 2020
@hypest
Copy link
Contributor Author

hypest commented Mar 9, 2022

"Switch to classic" has been removed for some time now so, closing this ticket. Happy to reopen if it still holds for some flow. Thank you all!

@hypest hypest closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants