Eager load milestone and labels when creating issues and MRs
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Description
On the issue and MR creation pages, the milestone and label dropdowns should start loading their contents in the background before the user opens them, but only if the user can actually set them. Often on GitLab.com, when I am creating an issue/MR, it takes a long time for the milestones and label dropdowns to load. It is often faster for me to submit the form and edit the issue after it is created.
Proposal
- When the issue/MR creation page loads, start AJAX requests to get the available milestones and labels.
- If the user opens either of the dropdowns, use the pending (or completed) AJAX request instead of starting a new request (and therefore making the requests from step 1 pointless).
Suggested labels
gitlab-ce2656755 gitlab-ce2655208 gitlab-ce2655237 gitlab-ce2658854 ~Frontend ~Performance
Edited by 🤖 GitLab Bot 🤖