
Sam Thorogood
404 bio not found
Work
¯\_(ツ)_/¯
The System Font
The System Font
5 min read
loading...
Recent comments
Sure you want to leave?—browser beforeunload event
Yeah, because your code otherwise won't have a chance to run....
Sure you want to leave?—browser beforeunload event
Inside your beforeunload handler, you can add code in a setTi...
Sure you want to leave?—browser beforeunload event
Moving to another page can be detected by watching focus or t...
Sure you want to leave?—browser beforeunload event
Don't send an XMLHttpRequest—use sendBeacon, like I mentioned...
Sure you want to leave?—browser beforeunload event
You could do the action and revert it if your JS runs again.
Sure you want to leave?—browser beforeunload event
No, that's the whole point. You could write something like "C...
Beyond appendChild: Better convenience methods for HTML
For a one-liner... hmm: document.querySelector('.accordion-...
Progress Indicator With Fetch
I don't believe node-fetch supports this. Read more.