luwes / luwes/template-extensions

AssignedTemplateInstance performance

Open
#9 1 comment 1 reaction 1 assignee View on GitHub

@luwes is already working on this.

Since Dec 31, 2022.

enhancement help wanted
Dominant language
JavaScript
Stars
18
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Related to https://github.com/luwes/template-extensions/blob/b9e024b2dc9872c04df900074e3c1362ee0d8371/src/assigned-template.js#L30-L45

Parsing and creating DOM parts first on a dummy template to then transfer them over to the SSR'd DOM is quite an expensive operation if wanting top performance. Fine for 90% of use cases, it's as fast as React's hydrate call.

Not needing to ship the full HTML template w/ expressions for the SSR'd content (watch out for conditional branches, these will still need the full HTML template!) is another reason to have the selector representation available straight from the server.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.