Render MR widget info asynchronously
Currently, mr-widget info is serialized during the page load: https://gitlab.com/gitlab-org/gitlab-ce/blob/b76bc2762a245c61089fae486e61c9fd83d45f95/app/views/projects/merge_requests/show.html.haml#L23. According to my local tests this serialization takes 250-400ms, it would be cool to load this data asynchronously.
- This would improve the performance of the initial page loading
- Potentially we could e-tag-cache the data after mr-widget auto-refresh caching is fully implemented and becomes mature
This MR and the list of points are the good places to start from: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32190#note_210298780
Edited by Igor Drozdov