Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
👨‍💻

Alfonso Millan mechmillan

💭
👨‍💻
View GitHub Profile
@tannerlinsley
tannerlinsley / onWindowFocus.js
Created Jan 9, 2020
A utility function to detect window focusing without false positives from iframe focus events
View onWindowFocus.js
const state = {
added: false,
interval: false,
inFrame: false,
callbacks: []
}
export default function onWindowFocus(cb) {
state.callbacks.push(cb)
start()
View advanced-js-resources.md

Advanced JavaScript Learning Resources

This is a list of advanced JavaScript learning resources from people who responded to this [Tweet][13] and this [Tweet][20].

  • [You Don't Know JS][3]

  • [Frontend Masters courses by Kyle Simpson][12]

  • [@mpjme][6]'s [YouTube videos][5]