`self` is better than `window`, because it also exists in Web Workers.https://developer.mozilla.org/en-US/docs/Web/API/Window/self …
@rauschma For example, there’s absolutely no advantage to jQuery using `self` instead of `window`.
-
-
@mathias But is there a disadvantage to using self everywhere? -
@rauschma Yeah — if you use it to indicate whether a script is worker-safe or not (like I do), then using it everywhere loses that meaning. - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.