1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:47:45 +00:00

Base: Show how long it took to load the welcome.html page :^)

This commit is contained in:
Andreas Kling 2020-09-29 18:36:00 +02:00
parent 18cff5e0be
commit 279a49cdf4

View file

@ -22,6 +22,9 @@ a {
span#ua { span#ua {
color: red; color: red;
} }
span#loadtime {
color: yellow;
}
</style> </style>
<script src="welcome.js"></script> <script src="welcome.js"></script>
</head> </head>
@ -29,6 +32,7 @@ span#ua {
<h1>Welcome to the Serenity Browser!</h1> <h1>Welcome to the Serenity Browser!</h1>
<p>This is a very simple browser built on the LibWeb and LibJS engines.</p> <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>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> <p>Some small test pages:</p>
<ul> <ul>
<li><a href="checkbox.html">checkbox</a></li> <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="pgmsuite.html">PGM test suite</a></li>
<li><a href="ppmsuite.html">PPM test suite</a></li> <li><a href="ppmsuite.html">PPM test suite</a></li>
</ul> </ul>
<script>
document.getElementById("loadtime").innerHTML = performance.now();
</script>
</body> </body>
</html> </html>