Client-side optimisations when the site only needs server-side rendering #12918
-
Hi there! This might be a very left-field requirement, but currently I'm working on a site that contains some pages that only require server-side rendering. For instance, some screens contain a HTML Unfortunately, it appears that every page in the application also loads up JS chunks and framework code to the browser, despite the delivered content not needing any client-side functionality. I've been through the documentation a few times and can't see any way of doing this whatsoever. Note that creating a static-site is also not an option since some data must be loaded up at run-time before the HTML is rendered. In these cases we're essentially using NextJS as a rich templating engine. Is there a way that we can turn-off any client-side rendering, or only have server-side rendering enabled in a project, or even better within just some pages of a project please? Any tips or suggestions would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is currently possible experimentally: #11949 |
Beta Was this translation helpful? Give feedback.
-
Fabulous! I'll take a look - and that was an incredibly quick reponse too. 'mazing. |
Beta Was this translation helpful? Give feedback.
This is currently possible experimentally: #11949