-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Improve Kanban performances when loading user pictures #14525
Improve Kanban performances when loading user pictures #14525
Conversation
Does this work? This code predates us being allowed to use modern JS features like promises, so I think that is why there are so many synchronous calls. |
I though it was working at first but after a second look it doesn't apply the retrieved images. What do you think about this part ?
|
Also, the Kanban should be making a single call during the initial loading to |
I see, maybe this is only an issue with the Will try to look deeper into it, thanks for your insights. |
Looking at the ticket, I would say the many calls to I don't have many users with a picture, but I can add some and look into the issue more. |
Seems like there is a code order issue. The |
Latest update: it seems that the issue is that Should be good now, ready for reviews. |
Kanban load each users pictures to display using synchronous ajax requests.
This is problematic when you have a lot of tickets with 100+ different user pictures to load.
There is a gif example in the internal ref where the page takes 55 seconds to load because of this, as each images must be loaded one by one while the execution of the page is paused.
@cconard96 Can you confirm that this change (setting the request as asynchronous) is safe ? I see a few more
async: false
parameters in the same file, can they be removed as well ?An even better improvement would be to get the picture directly from the main
action=refresh
ajax request:It seems we already have all information needed in this endpoint, this would help reduce the amount of ajax requests by loading all the data at once.
Is this something you could look into if you have some time ?