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

Optimize based on what is onscreen #501

Open
staab opened this issue Dec 5, 2024 · 0 comments
Open

Optimize based on what is onscreen #501

staab opened this issue Dec 5, 2024 · 0 comments
Labels
enhancement New feature or request refactoring Improves code health

Comments

@staab
Copy link
Collaborator

staab commented Dec 5, 2024

From #497

Use svelte-infinite-scroll. This component allows us to determine what is visible on screen, which might give us an opportunity to optimise performance by only requesting/computing information for the elements on-screen or nearby. I'm thinking mostly of NoteActions.svelte, this one is probably the most expensive.

Although it looks like svelte-infinite-scroll basically does the same thing that createScroller does. It would be nice to un-render stuff that is no longer visible on the screen (that has been scrolled past) without losing its place in the dom. We could probably do this pretty easily in a custom component.

@staab staab added enhancement New feature or request refactoring Improves code health labels Dec 5, 2024
@staab staab added this to the 0.6.0 milestone Dec 5, 2024
@ticruz38 ticruz38 self-assigned this Dec 12, 2024
@staab staab removed this from the 0.6.0 milestone Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactoring Improves code health
Projects
None yet
Development

No branches or pull requests

2 participants