[code-infra] Remove redundant window prefixes for globals #195
Labels
performance
scope: code-infra
Specific to the core-infra product
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Summary
We mix the use of
window.setTimeout
withsetTimeout
in the codebase (as well as with a bunch of other globals). I think that for the most common globals, it's not needed. I can see us banning the use of thewindow.
version with an eslint rule. We will save a bit of network space, smaller bundle size.Examples
https://github.com/search?q=org%3Amui+window.setTimeout&type=code vs. https://github.com/search?q=org%3Amui+setTimeout&type=code.
Motivation
No response
Search keywords: -
The text was updated successfully, but these errors were encountered: