box/viewer.js — pull request #67 by lakenen (2014-06-19 22:20:06+00:00)
Title: LazyLader: only load visible pages initially

LazyLoader was loading `MAX_PAGE_LOAD_RANGE` pages as soon as the
first zoom happened, and this caused a slight delay in viewing the
first page. This commit amends that behavior to only load visible
pages when the viewer is ready, and sets a timeout to load the rest of
the "necessary" pages after about a second.