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