Sam Thorogood

Sam Thorogood @samthor

Location:
Sydney, Australia
Joined:
Feb 6, 2018

Sam Thorogood
articles - 40 total

Web Font Loading & The Status Quo

Let's start with the obvious: there's lots of great posts out there on font loading (which all tend...

Learn More 6 0Feb 18 '21

Observing rendered DOM nodes

When building webpages, we create and use HTML elements, but this is often a decidedly one-way...

Learn More 8 0Jan 20 '21

Check your JS with TS

Check your JS with TS TypeScript is great and its static analysis and typechecking can...

Learn More 15 0Jan 12 '21

The System Font

tl;dr: as of August 2020, use the following snippet to get the system font on your webpages, on most...

Learn More 11 0Aug 7 '20

Control Loading Spinner in HTML

Control Loading Spinner in HTML If your web experience involves real HTML pages and actual...

Learn More 11 0Apr 21 '20

Async Generators for User Input

Async Generators for User Input It's possible to build JS, on the web, with a native-like...

Learn More 32 1Apr 16 '20

Node.js Streams & Object Mode

Node.js Streams & Object Mode Streams in Node.js serve two purposes.The first, more...

Learn More 14 0Apr 14 '20

Logging with App Engine and Stackdriver

Logging with App Engine and Stackdriver In days of old, App Engine's logging statement...

Learn More 6 0Apr 14 '20

Progress Indicator With Fetch

A quick tip: in a previous demo, I showed how we can download a large file to seed the content for a...

Learn More 49 8Jun 20 '19

Graceful Shutdown Is A Lie

Your backends could crash at any time. Code defensively!

Learn More 35 2Jun 19 '19

Divert Vertical Scroll To The Side ↔️

Does your design involve horizontal scrolling? Ensure that natural, vertical scrolling works as intended.

Learn More 21 2Jun 18 '19

What To Expect When You're Expecting To Drop IE11 🗑️

50+ web features you can use when you say 👋 to IE11 support!

Learn More 156 12Jun 17 '19

Modern Web Components

Lit Element is a modern Web Component darling, but it's not "all-in". Read about how it plays nice with the platform.

Learn More 90 17Jun 16 '19

Google Assistant now supports "Open/Close" devices

Sometime since I wrote this post about using Google Assistant to open and close my garage door,...

Learn More 5 0Jun 15 '19

Install This PWA To Continue

In your JS, we can ask whether your site was loaded by tapping on an installed homescreen icon. Could we use this to prompt an install?

Learn More 44 5Jun 14 '19

Matching elements with selectors in JS

Learn about the helpers `matches` and `closest` in JS/HTML!

Learn More 27 13Jun 13 '19

PWAs that download like apps 🗜️

Experiments with installing PWAs from a tar file

Learn More 84 6Jun 12 '19

Disable a HTML form while in-flight using fieldset

Use `fieldset disabled` to prevent form changes during a submit!

Learn More 43 7Jun 11 '19

AMA, Sam 10-yr Googler in Web DevRel

Sam has worked for Google for ten whole years. Ask him things!

Learn More 65 40Jun 10 '19

Beyond appendChild: Better convenience methods for HTML

Sometimes, we all just have to write vanilla JS. Make it easier by updating your repertoire!

Learn More 137 14Jun 9 '19

Automate Reading Form Results with 🤖 Chrome

Learn how to open a page, submit a form, and scrape the result with Puppeteer.

Learn More 12 0Jun 6 '19

Sam's dotfiles highlights

A brief insight into my dotfiles and helpers

Learn More 19 6Jun 6 '19

Declaring JS Variables in 2019

var, let or const: what is the right choice? 🤔

Learn More 50 17Jun 5 '19

Detecting Select All on the Web

Let's intercept the Select All gesture and do something better!

Learn More 47 3Jun 4 '19

Arrow functions break JavaScript parsers

Esoteric musings on JavaScript's ambiguous arrow function

Learn More 84 5Jun 3 '19

Civilization is a game you never lose

Thoughts on Civilization (the video game, not the concept) and game theory!

Learn More 7 1Jun 1 '19

Blog-A-Day in June 2019

Sam writes a post every day in June: read on!

Learn More 11 1Jun 1 '19

Rebuild only when necessary in Node

Learn about Node's built-in filesystem watchers so that you only rebuild projects when you need to.

Learn More 18 0Jun 1 '19

The Chrome Dev Summit site: case study

Some reading on the CDS 2018 site—a simple content site for Chrome's annual conference

Learn More 58 0Mar 12 '19

WebGL point sprites, a tutorial

Over the past few days, I've been experimenting with WebGL, which is OpenGL fro...

Learn More 54 8Feb 6 '19