In this week’s roundup, a handy bookmarklet for inspecting typography, using
Dylan Barrell from Deque has created a bookmarklet that you can use to check if there are any issues with the content or functionality of your website after increasing the line, paragraph, letter, and word spacing, according to the “Text Spacing” success criterion of the Web Content Accessibility Guidelines.
(via Dylan Barrell)
The proposed top-level
await (e.g., to connect to a database), and module B imports module A — via the
import declaration — then the body of B will be evaluated after the body of A (i.e., B will correctly wait for A).
awaitenables modules to act as big async functions: With top-level
await, ECMAScript Modules (ESM) can
awaitresources, causing other modules who
importthem to wait before they start evaluating their body.
(via Brian Kardell)
AMP has created a new multi-stage loading indicator that has better perceived performance (tested on 2,500 users): It shows nothing until 0.5s, then an intermediate animation until 3.5s, and finally a looping spinner after that.
(via Andrew Watterson)
autofocusa global attribute that “applies to all elements, not just to form controls” (e.g., this change enables
<div contenteditable autofocus>, but no browser supports this yet) (via Kent Tamura).
Read more news in my new, weekly Sunday issue. Visit webplatform.news for more information.