Sam ThorogoodJS Callbacks to PromisesThis post is about converting old APIs like requestAnimationFrame to modern, Promise-based APIs. ⚠️ If you just want to see the code…Feb 5, 20184Feb 5, 20184
Sam ThorogoodinDev ChannelES6 Modules in Chrome M61+ES6 modules are now supported in Chrome, from 61 onwards—they also work in older versions, but you’ll have to enable the Experimental Web…May 5, 201713May 5, 201713
Sam ThorogoodinDev ChannelFocus inside Shadow DOMIn 2017, across both Chrome and Safari (with Edge and Firefox coming soon), you can encapsulate HTML and CSS in a “shadow root”. Shadow DOM…Feb 21, 2017Feb 21, 2017
Sam ThorogoodinDev ChannelHow to add a Web App Manifest and mobile-proof your siteIt’s the year 201x, and everyone has a phone — statistically an Android phone, if it’s a smartphone. Most importantly, it’s the primary and…Feb 17, 20179Feb 17, 20179
Sam ThorogoodinDev ChannelClosure Compiler for JS fun and profitThe Closure Compiler — also named JSCompiler, internally at Google — underpins most of Google’s web properties by optimizing, typechecking…Aug 30, 20162Aug 30, 20162