USe innerHtml to avoid slow performance on a MR with very large diff
This commit is contained in:
parent
4a29669dec
commit
0c54c9a8a3
1 changed files with 2 additions and 3 deletions
|
@ -144,9 +144,8 @@ class @MergeRequestTabs
|
|||
@_get
|
||||
url: "#{source}.json" + @_location.search
|
||||
success: (data) =>
|
||||
html = $(data.html)
|
||||
html.syntaxHighlight()
|
||||
$('#diffs').html(html)
|
||||
document.getElementById('diffs').innerHTML = data.html
|
||||
$('div#diffs .js-syntax-highlight').syntaxHighlight()
|
||||
@diffsLoaded = true
|
||||
@scrollToElement("#diffs")
|
||||
|
||||
|
|
Loading…
Reference in a new issue