We're a place where coders share, stay up-to-date and grow their careers.
Developer Relations for Web at Google.
🥑💧
¯\_(ツ)_/¯ at Google
@samthor's guidelines:
Contact me on Twitter if you'd like to talk.
All private interactions must abide by the code of conduct.
rippleJS
vanilla Material Design ripples
JavaScript • 176 stars
emojityper
Github said "Error saving your changes: Description contains unicode characters above 0xffff" when I put the FACE LAUGHING WITH TEARS OF JOY emoji in this box
JavaScript • 72 stars
undoer
Native undo/redo behavior for web
JavaScript • 40 stars
scoped
Scoped CSS polyfill
JavaScript • 30 stars
Sam Thorogood
Yeah, because your code otherwise won't have a chance to run....
Jan 13
Inside your beforeunload handler, you can add code in a setTi...
Jan 12
Moving to another page can be detected by watching focus or t...
Don't send an XMLHttpRequest—use sendBeacon, like I mentioned...
You could do the action and revert it if your JS runs again.
No, that's the whole point. You could write something like "C...
For a one-liner... hmm: document.querySelector('.accordion-...
Jun 3 '20
I don't believe node-fetch supports this. Read more.
Mar 12 '20
Sam Thorogood for Google Web Dev
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.