Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused anchor links placed before every page #5588

Merged
merged 1 commit into from
Jan 23, 2015
Merged

Remove unused anchor links placed before every page #5588

merged 1 commit into from
Jan 23, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

In old versions of the viewer, anchor links were used to be able to scroll a page into view. Since we for quite some time have had a scrollIntoView function which handles this, the anchor links are no longer necessary and I believe that they can be removed. Doing so will reduce the total number of DOM elements in the viewer.

For most documents this patch will probably not make much of a difference performance wise, but for very long (1000+ pages) documents this could help performance especially on lower powered hardware.

In old versions of the viewer, anchor links were used to be able to scroll a page into view. Since we for quite some time have had a `scrollIntoView` function which handles this, the anchor links are no longer necessary and I believe that they can be removed. Doing so will reduce the total number of DOM elements in the viewer.

For most documents this patch will probably not make much of a difference performance wise, but for very long (1000+ pages) documents this could help performance especially on lower powered hardware.
@CodingFabian
Copy link
Contributor

Trivial, I believe that can be merged. @yurydelendik

@Snuffleupagus
Copy link
Collaborator Author

Regarding merging this, please see http://logs.glob.uno/?c=mozilla%23pdfjs&s=6+Jan+2015&e=6+Jan+2015#c29091.

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/33a6d7cdd763c1d/output.txt

timvandermeij added a commit that referenced this pull request Jan 23, 2015
Remove unused anchor links placed before every page
@timvandermeij timvandermeij merged commit dd7fd0b into mozilla:master Jan 23, 2015
@timvandermeij
Copy link
Contributor

Great, thank you!

@Snuffleupagus Snuffleupagus deleted the remove-pageView-anchor branch January 23, 2015 21:40
speedplane pushed a commit to speedplane/pdf.js that referenced this pull request Feb 24, 2015
…chor

Remove unused anchor links placed before every page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants