Performance: Reduced responsiveness when using Annotations API #12642
Labels
[Feature] Annotations
Adding annotation functionality
[Type] Performance
Related to performance efforts
Milestone
Describe the bug
Since Yoast SEO 9.2 we have implemented the annotations API support.
This results in reduced responsiveness when typing, at least in two situations:
Which suggests that the problem is only amplified by doing faster or more actions together.
Events that are used (extracted from profiling in the browser):
Mouse movement:
Gutenberg/editor/index.js: stopTypingOnMouseMove
Fast typing:
Gutenberg/editor/index.js: key: "render"
Maybe related:
When using Yoast SEO 9.1 (no annotations API) the following issue manifests itself after ~26 items in the How-To block instead of ~15
To Reproduce
Steps to reproduce the behavior:
Or
Expected behavior
I expect the text to be updated and rendered whenever I type.
Screenshots
When moving the mouse while typing, these are the performance tab results:
When typing very quickly, these are the performance tab results:
Desktop (please complete the following information):
Additional context
Related issue on Yoast SEO: Yoast/wordpress-seo#11772
The text was updated successfully, but these errors were encountered: