summaryrefslogtreecommitdiff
path: root/Base/res
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-26 14:36:20 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-26 14:39:14 +0200
commita248ec63e31a3ff4079b40bb099d5ce9b92fbea1 (patch)
tree48bdf368f4e1db5661f14f2aeeb1eda46fd1dca4 /Base/res
parent831fdcaabc95817d4bff9c8bd8a6741227a0b371 (diff)
downloadserenity-a248ec63e31a3ff4079b40bb099d5ce9b92fbea1.zip
LibWeb: Implement window.queueMicrotask(callback)
This API allows authors to schedule a serialized JS callback that will get invoked at the next spec-allowed opportunity.
Diffstat (limited to 'Base/res')
-rw-r--r--Base/res/html/misc/welcome.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html
index 4984651f00..8f93bed723 100644
--- a/Base/res/html/misc/welcome.html
+++ b/Base/res/html/misc/welcome.html
@@ -178,7 +178,9 @@
</ul>
</nav>
<script>
- document.getElementById("loadtime").innerHTML = performance.now();
+ queueMicrotask(function() {
+ document.getElementById("loadtime").innerHTML = performance.now();
+ });
</script>
</body>