Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omit hydration keys for static nodes #972

Closed
gbj opened this issue Apr 28, 2023 · 2 comments
Closed

Omit hydration keys for static nodes #972

gbj opened this issue Apr 28, 2023 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@gbj
Copy link
Collaborator

gbj commented Apr 28, 2023

We access each HTML element directly during hydration by ID. But we also know at compile time which elements are static (have no dynamic attributes or children and no event listeners). For these, we can skip generating hydration IDs on the server (shortens HTML and removes a String allocation) and skip the lookup on the client (allowing faster hydration).

@gbj gbj added the enhancement New feature or request label Apr 28, 2023
@gbj gbj mentioned this issue Jun 5, 2023
14 tasks
@gbj gbj mentioned this issue Oct 2, 2023
10 tasks
@gbj gbj added this to the 0.6 milestone Nov 4, 2023
@gbj
Copy link
Collaborator Author

gbj commented Nov 4, 2023

Already accomplished in early work on 0.6.

@gbj
Copy link
Collaborator Author

gbj commented Aug 4, 2024

Done in 0.7.

@gbj gbj closed this as completed Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant