Skip to content

Commit 3b12b5c

Browse files
committed
fix: time ticker
1 parent fb34389 commit 3b12b5c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/playground/json/index.ssr.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
</div>
1111

1212
<script type="module">
13-
const start = Date.now()
13+
const startModule = Date.now()
1414
text('.fetch-json-module pre', await (await fetch('/json-module')).text())
15-
text('.fetch-json-module code', Date.now() - start)
15+
text('.fetch-json-module code', Date.now() - startModule)
1616

17+
const startFs = Date.now()
1718
text('.fetch-json-fs pre', await (await fetch('/json-fs')).text())
18-
text('.fetch-json-fs code', Date.now() - start)
19+
text('.fetch-json-fs code', Date.now() - startFs)
1920
function text(sel, text) {
2021
document.querySelector(sel).textContent = text
2122
}

0 commit comments

Comments
 (0)