Skip to content

Commit e62c107

Browse files
committed
Fix measurement script HTML check and remove debug console.logs
- Update waitForFirstReactShellFetch to check for '<div id="root">' instead of '<div id="root"></div>' since the root div now contains splash screen content. - Remove console.log timestamp instrumentation from index.html and main.tsx that was accidentally committed to production code.
1 parent a0b1d06 commit e62c107

3 files changed

Lines changed: 1 addition & 8 deletions

File tree

apps/web/index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
<meta name="theme-color" content="#161616" />
99
<link rel="icon" href="/favicon.ico" sizes="48x48" />
1010
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
11-
<script>
12-
console.log("index.html loaded at", new Date().toISOString());
13-
</script>
1411
<script>
1512
(() => {
1613
const LIGHT_BACKGROUND = "#ffffff";

apps/web/src/main.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
console.log("main.tsx loaded at", new Date().toISOString());
2-
31
import React from "react";
42
import ReactDOM from "react-dom/client";
53
import { RouterProvider } from "@tanstack/react-router";
@@ -28,5 +26,3 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
2826
<RouterProvider router={router} />
2927
</React.StrictMode>,
3028
);
31-
32-
console.log("main.tsx rendered at", new Date().toISOString());

scripts/measure-react-startup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async function waitForFirstReactShellFetch(
159159
const body = await response.text();
160160
if (
161161
response.ok &&
162-
body.includes('<div id="root"></div>') &&
162+
body.includes('<div id="root">') &&
163163
body.includes('<script type="module"')
164164
) {
165165
return {

0 commit comments

Comments
 (0)