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

Hydration Attributes #7409

Closed
plutoniumm opened this issue Apr 1, 2022 · 1 comment
Closed

Hydration Attributes #7409

plutoniumm opened this issue Apr 1, 2022 · 1 comment

Comments

@plutoniumm
Copy link

Describe the problem

Svelte Currently operates in binary, SSR or Client side (admittedly this being heavily customisable to reasonably fine detail), there however is still no way to control the hydration at multiple stages of life cycle specifically at

  • Server Side: Directly Rendered
  • Client Side:
    • On Load
    • On Visible
    • On Idle

Describe the proposed solution

The easiest would probably be an Astro like solution where on:load, on:visible and on:idle attributes are directly used, considering svelte's compiler like nature, it makes it easy to abstract away this functionality at least on a component level from end user, using requestIdleCallback, IntersectionObserver etc, (We might need to add polyfills if this feature is implemented)

Alternatives considered

Currently doing this manually or with slightly prebuilt libraries like svelte-visibility-change

Importance

would make my life easier

@cudr
Copy link
Contributor

cudr commented Apr 13, 2022

Related to sveltejs/kit#1390

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants