diff --git a/beta/src/pages/_app.tsx b/beta/src/pages/_app.tsx index 18bd9b2f..6018c349 100644 --- a/beta/src/pages/_app.tsx +++ b/beta/src/pages/_app.tsx @@ -20,6 +20,8 @@ if (typeof window !== 'undefined') { window.addEventListener(terminationEvent, function () { ga('send', 'timing', 'JS Dependencies', 'unload'); }); + + disableAllRuntimeStyleInjection(); } export default function MyApp({Component, pageProps}: AppProps) { @@ -53,3 +55,37 @@ export default function MyApp({Component, pageProps}: AppProps) { return ; } + +// HACK(css-in-js): We use Sandpack, which uses Stitches (css-in-js lib). +// This causes style recalc during hydration which is bad for perf. +// Instead, let's rely on the SSR'd +