Skip to content

Commit 44b1ddf

Browse files
committed
syntaxur: trying to hide render container while inserting DOM string, to avoid style-recalc delays (but didn't help)
1 parent a7b7b33 commit 44b1ddf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

syntaxur/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ <h1>syntaxur</h1>
4848
$("#time").text("Highlighting (not including DOM manipulation) took: " + (t2-t1) + "ms. DOM manipulation...");
4949

5050
setTimeout(function(){
51+
$("code").hide();
5152
t1 = Date.now();
5253
$("code").html(html);
5354
t2 = Date.now();
55+
$("code").show();
5456

5557
$("#time").text($("#time").text() + " took: " + (t2-t1) + "ms)");
5658
},50);

0 commit comments

Comments
 (0)