Hey guys, I have some good (or maybe bad news), I think I know what is causing this problem. It likely only occurs on sites with a large number of tags.
When you start typing, for example let’s say you want to add “android” as a tag:
1. Type a, Gutenberg sends request to fetch all tags with “a” in them.
2. Type an, Gutenberg sends request to fetch all tags with “an” in them. Request 1 continues.
3. Type and, Gutenberg sends request to fetch all tags with “and” in them. Request 1 and 2 are still occurring.
Each request fetches 100 tags at a time. If you have 5,000 tags, and 3100 of them has “a” in it, it sends a request for 32 pages of tags.
You can see the network log of requests here:
View post on imgur.com
In this log, you can see there are actually 3 simultaneous requests, one for “a”, “and”, and “android”. The “a” request causes the most problems as it is 32 pages of json requests.
My blog had 13k tags, after trimming tags to 5k (by eliminating tags with 1 post, for example), the problem is a little better, but our editors are still having problems adding tags in the Gutenberg editor.
To fix this problem, I would recommend increasing the page size for blogs with large number of tags, cancelling the old request once a new character is typed into the tags box, or only fetch tags when a minimum of characters is typed.