webtides / element-js

Simple and lightweight base classes for web components with a beautiful API
MIT License
26 stars 3 forks source link

Discovery: HTML minification vs Hydration #115

Open quarkus opened 8 months ago

quarkus commented 8 months ago

find out what happens when hydrating a minified SSRd element

Might be a use case if html minification is used in production.

imagine a ssr'd html like:

<my-element><div>${this.foo}</div><div>${this.bar}</div></my-element>

vs.:

<my-element>
<div>${this.foo}</div>
<div>${this.bar}</div>
</my-element>

will hydration work ? when we crash .. how hard will we crash ?