diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-26 14:36:20 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-26 14:39:14 +0200 |
commit | a248ec63e31a3ff4079b40bb099d5ce9b92fbea1 (patch) | |
tree | 48bdf368f4e1db5661f14f2aeeb1eda46fd1dca4 /Base/res | |
parent | 831fdcaabc95817d4bff9c8bd8a6741227a0b371 (diff) | |
download | serenity-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.html | 4 |
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> |