summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-29 18:36:00 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-29 18:36:00 +0200
commit279a49cdf44092c36ad8b300286c224f13085eb8 (patch)
tree09316cfe948ccd1e345505e5730a96a186286aee
parent18cff5e0be2c2ac96e472e5d9dedd1303e036515 (diff)
downloadserenity-279a49cdf44092c36ad8b300286c224f13085eb8.zip
Base: Show how long it took to load the welcome.html page :^)
-rw-r--r--Base/res/html/misc/welcome.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html
index 3016ccb2f7..f11253496f 100644
--- a/Base/res/html/misc/welcome.html
+++ b/Base/res/html/misc/welcome.html
@@ -22,6 +22,9 @@ a {
span#ua {
color: red;
}
+span#loadtime {
+ color: yellow;
+}
</style>
<script src="welcome.js"></script>
</head>
@@ -29,6 +32,7 @@ span#ua {
<h1>Welcome to the Serenity Browser!</h1>
<p>This is a very simple browser built on the LibWeb and LibJS engines.</p>
<p>Your user agent is: <b><span id="ua"></span></b></p>
+ <p>This page loaded in <b><span id="loadtime"></span></b> ms</p>
<p>Some small test pages:</p>
<ul>
<li><a href="checkbox.html">checkbox</a></li>
@@ -93,5 +97,8 @@ span#ua {
<li><a href="pgmsuite.html">PGM test suite</a></li>
<li><a href="ppmsuite.html">PPM test suite</a></li>
</ul>
+ <script>
+ document.getElementById("loadtime").innerHTML = performance.now();
+ </script>
</body>
</html>