mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-22 02:18:45 -04:00
cache node.children[i] for 10% speedup.
This commit is contained in:

committed by
Ilya Grigorik

parent
b31d53a4d0
commit
343a9573ff
@@ -279,9 +279,8 @@ chrome.runtime.sendMessage({}, function(response) {
|
||||
}
|
||||
} else if (node.children != undefined) {
|
||||
for (var i = 0; i < node.children.length; i++) {
|
||||
checkForVideo(node.children[i],
|
||||
node.children[i].parentNode || parent,
|
||||
added);
|
||||
const child = node.children[i];
|
||||
checkForVideo(child, child.parentNode || parent, added);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user