diff --git a/src/index.html b/src/index.html index 49f8fb48c543..a599bff0a610 100644 --- a/src/index.html +++ b/src/index.html @@ -1,6 +1,28 @@ - + + +
diff --git a/src/server.jsx b/src/server.jsx index aad994d5d50b..1a78b2a07e1d 100644 --- a/src/server.jsx +++ b/src/server.jsx @@ -42,5 +42,9 @@ export default (locals) => { const hoistedTags = headTagsMatch ? headTagsMatch[1] : ""; const bodyHtml = renderedHtml.slice(hoistedTags.length); - return `${css}${hoistedTags}
${bodyHtml}
${scripts}`; + // Blocking inline script to prevent dark mode FOUC + const themeScript = + ""; + + return `${themeScript}${css}${hoistedTags}
${bodyHtml}
${scripts}`; };