mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
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.
This commit is contained in:
parent
831fdcaabc
commit
a248ec63e3
Notes:
sideshowbarker
2024-07-18 03:26:12 +09:00
Author: https://github.com/awesomekling
Commit: a248ec63e3
10 changed files with 144 additions and 19 deletions
|
@ -178,7 +178,9 @@
|
|||
</ul>
|
||||
</nav>
|
||||
<script>
|
||||
document.getElementById("loadtime").innerHTML = performance.now();
|
||||
queueMicrotask(function() {
|
||||
document.getElementById("loadtime").innerHTML = performance.now();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue