Closed (fixed)
Project:
Admin Toolbar
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
6 Apr 2020 at 10:07 UTC
Updated:
20 Apr 2020 at 15:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sasanikolic commentedHere is the proposed patch with the improvement.
Comment #3
miro_dietikerFrom reading, i think this currently means that if you enter the search box twice, you will push each URL twice, and more...
Also it means each time you enter, the 40ms are spent again.
We should limit this to a single init execution only.
Or am i maybe wrong?
Comment #4
sasanikolic commented@miro_dietiker That's why I added this check here. If it's already populated, the code will not execute again.
Comment #5
berdircan we get the attribute directly from this instead of going through jquery again? that could remove quite a bit of overhead I imagine?
Comment #6
sasanikolic commentedI noticed the duplicated admin_toolbar_search.js and opened a followup for that: .
Moved the code to the right file now and updated value and label to get the href using javascript instead of jquery.
Comment #9
adriancidThanks