Run code whenever a JavaScript class is parsed using static initialization blocks.
Heyooo, I'm Stefan! I write and speak about web stuff.
New on the blog
Use the
translate
attribute to disable localization for HTML elements.My unspectecular 2024 default apps setup.
CSS keyframe animations allow to specify duplicated properties.
Quick thoughts about blogging and creating things to show.
Use JavaScript symbols to create "private" and hidden object properties that won't show up in
Object
and friends..keys
Most popular in the last 30 days
- On being a "JavaScript framework developer"...
- How to import JSON files in ES modules (Node.js)
- Web Weekly #146
- APIs to generate random user avatars
- Use "translate" to turn off element translations
Hacker News Hits
- HTTP headers for the responsible developer 887 upvotes and 98 comments
- A Firefox-only minimap (2021) 699 upvotes and 113 comments
- Git commit accepts several message flags (-m) to allow multiline commits 339 upvotes and 152 comments
- How to force yourself to leave the computer using the leave command 77 upvotes and 32 comments
- Say goodbye to resource-caching across sites and domains 74 upvotes and 79 comments