Created
December 19, 2018 20:26
-
-
Save felipepatricio/c80a0c11a799a6800da7ec9ee7f8e6e7 to your computer and use it in GitHub Desktop.
Esses códigos são utilizados no artigo https://medium.com/@patriciofelipe/desempenho-da-resolu%C3%A7%C3%A3o-do-identificador-9c1f7f419f1
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
function initUi() { | |
let links = document.getElementByTagName('a'), | |
i = 0, | |
length = links.lenght | |
while(i < len) { | |
update(links[i += 1]); | |
} | |
document.getElementById('send-btn').onclick = () => { | |
start() | |
} | |
document.body.className = 'active' | |
} |
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
function initUi() { | |
let localDocument = document, | |
links = localDocument.getElementByTagName('a'), | |
i = 0, | |
length = links.lenght | |
while(i < length) { | |
update(links[i += 1]); | |
} | |
localDocument.getElementById('send-btn').onclick = () => { | |
start() | |
} | |
localDocument.body.className = 'active' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment