Skip to content

Hydration speed up #5108

Closed
Closed
@lastonoga

Description

@lastonoga

Hey, guys!

I did a work to speed up hydration step (https://github.com/sexy-framework/sexy).
And i got really good numbers (better then NuxtJS in 4.5 times and Sapper in 10 times)

And i can try to help you with it.

To make really cool FID and TTI we need to skip first hydration.

First "DOM hydration" is made by SSR, then on client side we only need to register subscribers on reactive variables and skip DOM work:

  • innerHTML
  • nodeValue
  • setAttribute
  • classList and etc

All of that we need to skip.

As i know Svelte doesn't skip it. Am i right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions