Fix the configuration of the IntersectionObserver to detect the pages that are visible so we can avoid rendering the invisible pages in the initial rendering as well as when scrolling.
Most important change is the removal of L122. The rest is refactoring that helps debugging the issue as well a better logging to understand it better.
This bugfix is urgent as it might use many GB of RAM on some pdfs and is enough to crash Firefox for some users.
Fix the configuration of the IntersectionObserver to detect the pages that are visible so we can avoid rendering the invisible pages in the initial rendering as well as when scrolling.
Most important change is the removal of L122. The rest is refactoring that helps debugging the issue as well a better logging to understand it better.
This bugfix is urgent as it might use many GB of RAM on some pdfs and is enough to crash Firefox for some users.