mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-05-27 08:50:37 +00:00
30 lines
644 B
HTML
30 lines
644 B
HTML
<!-- Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
<!doctype html>
|
|
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>Performance test page</title>
|
|
</head>
|
|
|
|
<body>
|
|
<script type="text/javascript">
|
|
"use strict";
|
|
|
|
/* exported performWork */
|
|
function performWork() {
|
|
const worker = new Worker("js_simpleWorker.js");
|
|
|
|
worker.addEventListener("message", function (e) {
|
|
console.log(e.data);
|
|
console.timeStamp("Done");
|
|
}, false);
|
|
|
|
worker.postMessage("Hello World");
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|