← back to build-pages
home: 'rendered in Xms' footer — request-time visibility (typically ~15-25ms warm)
77e85e832c4595ef7479228f890e75cc624880f5 · 2026-05-13 18:46:46 -0700 · SteveStudio2
Files touched
Diff
commit 77e85e832c4595ef7479228f890e75cc624880f5
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Wed May 13 18:46:46 2026 -0700
home: 'rendered in Xms' footer — request-time visibility (typically ~15-25ms warm)
---
server.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server.js b/server.js
index 01bdce0..2856253 100644
--- a/server.js
+++ b/server.js
@@ -300,6 +300,7 @@ app.get('/api/version', (_req, res) => {
// with /p/:slug), so a warm index hit is one HEAD-probe per repo, not a full
// git rev-list scan each.
app.get('/', async (req, res, next) => {
+ const t0 = Date.now();
try {
const entries = await Promise.all(Object.entries(PROJECTS).map(async ([slug, p]) => {
const bundle = await getProjectBundle(slug, p).catch(() => null);
@@ -420,6 +421,7 @@ app.get('/', async (req, res, next) => {
<h2>Projects</h2>
<ul class="bp-cards">${rows}</ul>
+ <p class="bp-meta" style="text-align:center;margin-top:30px">rendered in ${Date.now() - t0}ms</p>
`, `
<script type="application/ld+json">${JSON.stringify(jsonld)}</script>
<script type="application/ld+json">${JSON.stringify(itemList)}</script>
← 7fbdfa0 ui: commit-list <li id="hash"> deep-link anchors + :target h
·
back to build-pages
·
perf: X-Response-Time header on every response (via writeHea f752648 →