We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af37486 commit a7b7b33Copy full SHA for a7b7b33
1 file changed
syntaxur/index.html
@@ -45,8 +45,15 @@ <h1>syntaxur</h1>
45
html = Syntaxur.highlight(source);
46
t2 = Date.now();
47
48
- $("#time").text("Highlighting (not including DOM manipulation) took: " + (t2-t1) + "ms");
49
- $("code").html(html);
+ $("#time").text("Highlighting (not including DOM manipulation) took: " + (t2-t1) + "ms. DOM manipulation...");
+
50
+ setTimeout(function(){
51
+ t1 = Date.now();
52
+ $("code").html(html);
53
+ t2 = Date.now();
54
55
+ $("#time").text($("#time").text() + " took: " + (t2-t1) + "ms)");
56
+ },50);
57
},50);
58
},500);
59
});
0 commit comments