Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
Adjusting page cache in pdf.js

My question:

Is there any way to either suppress unloading of specific pages (say, by intercepting an event) or changing how aggressively PDF.js de-renders pages?

my usecase:

I use PDF.js to render textbooks.

observed behavior:

Some pages take a while to render. Scrolling away from those pages and scrolling back results in a spinner while the page loads.

why this is a problem:

For my specific usecase: students are most likely to need to refer back to the most slow-rendering pages while reading another part of the textbook. (e.g. flow charts and diagrams).

In general: I often want to leave multiple points in a document loaded (e.g., all the pages containing a search result). The re-rendering is problematic and I'm OK throwing a little more CPU and memory at the problem.

bonus points

is there a way to do this on the Firefox pdf renderer? even as a plugin or bookmarklet?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!