Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

144
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda