diff --git a/src/abacus-kochka/README.md b/src/abacus-kochka/README.md index cb9c9d5b48..813366dafc 100644 --- a/src/abacus-kochka/README.md +++ b/src/abacus-kochka/README.md @@ -1,5 +1,8 @@ [![Crowdin](https://badges.crowdin.net/kochkacommx/localized.svg)](https://crowdin.com/project/kochkacommx) +- https://kochka.com.mx/ +- [PageSpeed Insights](https://pagespeed.web.dev/report?url=https%3A%2F%2Fkochka.com.mx%2Fmenu&form_factor=mobile) + ```text yarn install yarn dev diff --git a/src/abacus-kochka/pages/_document.js b/src/abacus-kochka/pages/_document.js index 3023b053c3..b8967b1529 100644 --- a/src/abacus-kochka/pages/_document.js +++ b/src/abacus-kochka/pages/_document.js @@ -15,10 +15,10 @@ type RenderPageResult = { export default class MyDocument extends Document { // See: https://nextjs.org/docs/advanced-features/custom-document#customizing-renderpage - static async getInitialProps({ renderPage }: DocumentContext): Promise { - const page = await renderPage(); - return { ...page, styles: [sx.getStyleTag()] }; - } + // static async getInitialProps({ renderPage }: DocumentContext): Promise { + // const page = await renderPage(); + // return { ...page, styles: [sx.getStyleTag()] }; + // } createGoogleAnalyticsMarkup(): { __html: string } { return { diff --git a/src/sx/README.md b/src/sx/README.md index 19242c95da..2a8269181d 100644 --- a/src/sx/README.md +++ b/src/sx/README.md @@ -13,6 +13,7 @@ In conventional applications, CSS rules are duplicated throughout the stylesheet - [Automatic vendor prefixes](#automatic-vendor-prefixes) - [Server-side rendering](#server-side-rendering) - [Architecture](#architecture) + - [Runtime styles architecture](#runtime-styles-architecture) - [Prior Art](#prior-art) ## Installation and Usage @@ -481,6 +482,14 @@ Internally, these steps are happening: 5. and finally, we collect the values of the final object and print them as `className` +### Runtime styles architecture + +Runtime styles are styles that were not rendered by server (are for whatever reason missing or SSR is not enabled). Here is how SX deals with this situation: + +1. SX tries to find `