mozilla/pdf.js — pull request #2110 by arturadib (2012-09-12 21:31:02+00:00)
Title: Use document fragment in text layer

Speedup from ~1300ms to ~20ms. Also fixes scroll listener (it was broken since it was bound to `window`).

Notice I've removed the `setInterval` trick since now the rendering time is so short. For documents with too many divs (100,000+), disables text layer altogether (as the browser would be unusable anyway).