Skip to content
Discussion options

You must be logged in to vote

Hi @frederikhors,

As @sarussss mentioned, the slowness comes from downloading many videos at once. Instead, you should lazy-load the videos as they enter the viewport (the user scrolls them into view), and render a simple placeholder that takes up the same space, as demonstrated in the Lazy Load example in the docs.

Unfortunately, the examples are currently only available in vanilla JavaScript or React. While I’d love to provide Svelte examples as well, this is a known limitation due to time constraints, and it will likely only change if the project receives funding. That said, you should be able to adapt the vanilla JavaScript example to Svelte without too much trouble.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@frederikhors
Comment options

@davidjerleke
Comment options

Answer selected by davidjerleke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
resolved This issue is resolved question Question about how to achieve something svelte Issue is related to Svelte
3 participants