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

create priority queue for loading page objectURLs #201

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ericmarsh995
Copy link
Contributor

@ericmarsh995 ericmarsh995 commented Oct 11, 2022

Description

Creates a priority queue for loading objectURLs for all pages. Previously, we only loaded an objectURL once it was visible in the user viewport. Now, we will load all objectURLs from the start, one at a time. They will be loaded in this order: 1. visible pages 2. neighboring pages to the visible pages 3. every other page

Reviewer Instructions

Testing Plan

  1. Tested on all browsers
  2. Ensured that pages were loaded in the right order

Output / Screenshots

NOTE: the console.logs are only apart of the demo video, they havent been committed

Before

Screen.Recording.2022-10-11.at.11.12.34.AM.mov

After

Screen.Recording.2022-10-11.at.11.07.26.AM.mov

A11y

N/A

return;
}

const visiblePagesNeighbors = [
Copy link
Contributor

Choose a reason for hiding this comment

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

@ericmarsh995 i would love to abstract this line from 166 - 171 into maybe a class itself where we can unit test it correctly.

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.

2 participants