Created
November 12, 2013 18:09
-
-
Save cldellow/7435827 to your computer and use it in GitHub Desktop.
Diff: Improves performance of Keyboard Navigation (https://chrome.google.com/webstore/detail/keyboard-navigation/abcekjakjehkpheoaadhkjfcdodpjbgk/reviews) extension on pages with many links by using a DocumentFragment (https://developers.google.com/speed/articles/javascript-dom).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74a75 | |
> var fragment = document.createDocumentFragment(); | |
77c78 | |
< document.body.appendChild(hintsDiv); | |
--- | |
> fragment.appendChild(hintsDiv); | |
92a94 | |
> document.body.appendChild(fragment); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment