[wp-trac] [WordPress Trac] #55052: The tag field hangs the browsers when you have a bunch of tags

WordPress Trac noreply at wordpress.org
Mon Feb 7 23:47:17 UTC 2022


#55052: The tag field hangs the browsers when you have a bunch of tags
-------------------------------------------------+-------------------------
 Reporter:  pikamander2                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.9.1
Component:  Query                                |     Version:  5.9
 Severity:  critical                             |  Resolution:
 Keywords:  has-patch needs-testing 2nd-opinion  |     Focuses:
                                                 |  performance
-------------------------------------------------+-------------------------

Comment (by azouamauriac):

 Hi @costdev @pikamander2 i've read your comments, here is an example of
 what i'm saying, let assume that we have two tags "a baby" and "baby", and
 we set the limit to one(1), when you search "baby" in tag box suggestion
 you will see only "a baby"(that's what happen on my side you can try and
 confirm), so how can i do to show the tag "baby" in search result?

 Now if we expand the limit to 1 to 20 or any other number the same thing
 will happen when the number of tags that contain the search word will be
 more than the limit.

 Although I'm not feeling comfortable with the limit solution I think it's
 currently the best solution we have for 5.9.1. But what I think should be
 best are these:
 - first, ensure that the previous ajax request is done before launch new
 one.
 - second, launch ajax request only when the previous result does not
 content the current search word, that assume that the previous result is
 saved somewhere and used as the source of search according to
 https://api.jqueryui.com/autocomplete/#option-source


 thanks!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55052#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list