Container Registry Details: split details from tags call to reduce LCP
In the container registry details page, the whole UI is gated behind a skeleton loader.
Similarly to the list page we could speed up the header part to be shown if we separate our query in two pieces:
- Load all the data
- Load the tags
From a rapid test in a local environment it's visible that if we remove tags
form the query the results are ready in half of the time (280ms)
While loading details plus tags takes around 560ms
this is because for each tag rails is doing 3 requests to the container registry.
Doing like this will make the page first load the header and populate it, while the skeleton loader for the tags is still shown, and when the tags are ready show the tags.
Edited by Tim Rizzi