We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52e86d8 commit 2e35188Copy full SHA for 2e35188
src/mono/sample/wasm/browser-bench/main.js
@@ -101,10 +101,18 @@ class MainApp {
101
this.yieldBench();
102
}
103
104
+ bootstraped = false;
105
106
yieldBench() {
107
let promise = runBenchmark();
108
promise.then(ret => {
109
+ if (!this.bootstraped) {
110
+ fetch("/bootstrap.flag", {
111
+ method: 'POST',
112
+ body: "ok"
113
+ }).then(r => { console.log("bootstrap post request complete, response: ", r); });
114
+ this.bootstraped = true;
115
+ }
116
document.getElementById("out").innerHTML += ret;
117
if (ret.length > 0) {
118
setTimeout(() => { this.yieldBench(); }, 0);
0 commit comments