box / box/viewer.js

Delayed loading time offset by preloading pages?

Open
#193 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
333
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Right now when you scroll the next page is loaded by how far down you've scrolled, this works but becomes laggy when a user scrolls fast to the next page. I think preloading pages in a certain range would solve this issue. Currently I have the preloading feature apart of the loadPagesInRange function(line 4879) but this solution seems hacky and would love some input on where and/or how I should implement this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.