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

FaceCover: Lazy load faces files once face cover is visible in device viewport #1457

Merged
merged 5 commits into from
Nov 11, 2022

Conversation

marcelklehr
Copy link
Member

@marcelklehr marcelklehr commented Nov 4, 2022

fixes #1411

This makes sure we don't initiate thousands of requests but only request the list of faces for the faces that are immediately visible in the viewport. It's not virtual scrolling, but it's something.

  • a few extra fixes I noticed along the way

fixes #1423

… viewport

fixes #1411

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr marcelklehr requested a review from skjnldsv November 4, 2022 10:16
marcelklehr added a commit to nextcloud/recognize that referenced this pull request Nov 4, 2022
see nextcloud/photos#1457

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr marcelklehr changed the title FaceCover: Lazy load faces files once face cover is visible in device viewport WIP: FaceCover: Lazy load faces files once face cover is visible in device viewport Nov 4, 2022
…vice viewport

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
…w face

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Copy link
Collaborator

@artonge artonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you consider

src/utils/semaphoreWithPriority.js Outdated Show resolved Hide resolved
src/components/FaceCover.vue Show resolved Hide resolved
src/components/FaceCoverSmall.vue Outdated Show resolved Hide resolved
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr
Copy link
Member Author

/compile amend /js

@marcelklehr marcelklehr changed the title WIP: FaceCover: Lazy load faces files once face cover is visible in device viewport FaceCover: Lazy load faces files once face cover is visible in device viewport Nov 11, 2022
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@marcelklehr marcelklehr merged commit eba6259 into master Nov 11, 2022
@marcelklehr marcelklehr deleted the enh/lazy-load-faces branch November 11, 2022 13:38
@marcelklehr
Copy link
Member Author

/backport to stable25

@backportbot-nextcloud backportbot-nextcloud bot added the backport-request Pending backport by the backport-bot label Dec 3, 2022
@backportbot-nextcloud
Copy link

The backport to stable25 failed. Please do this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-request Pending backport by the backport-bot
Projects
None yet
2 participants