Delay in expanding diff link
### Summary
Clicking the `diff` link to expand/collapse the changes in an MR takes longer than 10 seconds and may sometimes take up to 30 seconds to function.
### Steps to reproduce
Simply go to the changes tab in an MR and click the `>` or ↓ to replicate the problem.
### What is the current *bug* behavior?
It takes over 10 seconds to load the diff window for that file.
### What is the expected *correct* behavior?
It should expand the diff window to expand/collapse right away.
### Relevant logs and/or screenshots
Screenshot can be found in the ticket.
### Related Ticket:
https://gitlab.zendesk.com/agent/tickets/129167
### GitLab Version
GitLab.com, GitLab Enterprise Edition 12.2.0-pre 92ddd57978c
issue