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

Added only render YouTubeVideoEmbed in the view port #127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

albertlast
Copy link
Contributor

reduce the load time massiv depends of the amount video released by the channels

What type of Pull Request is this?

  • Feature

What is the current behavior?

Load all images/stuff of all videos of all channels in the list -> result massiv load/cpu time

What is the new behavior?

Just rendering the most relevant videos,
when scrolling down more get loaded (since they are near the view port)

Other information

add dependency svelte-inview

i try to keep pr small/focused,
so i didn't added a default height/width --> the scroll bar is "jumping" when scrolling down

also the option for svelte-inview could maybe optimize

add dependency svelte-inview
redource the load time massiv depends of the amount video released by the channels
@albertlast
Copy link
Contributor Author

test can't run since the project doesn't want package-lock.json be part of a pr,
but since i added new dependcy test can't run.

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

Successfully merging this pull request may close these issues.

1 participant