support prerender
during development
#1249
Labels
CLI
documentation
Greenwood specific docs
enhancement
Improve something existing (e.g. no docs, new APIs, etc)
SSR
Milestone
Summary
While Greenwood supports prerendering pages at build time, for example, having a "client" side component like this
This actually doesn't take place during development, so it is very common to see layout shifts and FOUC, as well as not having the same behavior during development and production! 🫨
Details
The main trick is what to do about the
<script>
tag in the head, because if you have a Light DOM component, e.g.if you don't "guard" it like you would with declarative shadow DOM, e.g.
}
}
customElements.define('x-header', Header);
The text was updated successfully, but these errors were encountered: