lwc icon indicating copy to clipboard operation
lwc copied to clipboard

[Perf] Do not hydrate static elements

Open nolanlawson opened this issue 1 year ago • 0 comments

Marko has an optimization where, for components that are fully static, the following happens:

  1. The components are SSR'ed, but
  2. The components are not hydrated/CSR'ed

Screenshot 2023-05-23 at 4 08 00 PM

We already have the ability in the server to detect static fragments, so we should be able to do a similar optimization.

Even better would be to skip hydration at a fragment (not component) level, but this may be trickier.

nolanlawson avatar May 23 '23 23:05 nolanlawson