mozilla/pdf.js — pull request #4941 by Snuffleupagus (2014-06-14 12:16:29+00:00)
Title: Prevent rendering unnecessary pages when the HOME/END keys are pressed

Currently (at least in Firefox) when the HOME/END keys are pressed, this will trigger unnecessary rendering of pages that lay between the current page and the first/last page. Avoid this by going straight to the first/last page instead.