Mathias Bynens (@mathias) profile picture

♥ JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n.

Joined January 2007
Photo by Mathias Bynens (@mathias)Photo by Mathias Bynens (@mathias)Photo by Mathias Bynens (@mathias)Photo by Mathias Bynens (@mathias)Photo by Mathias Bynens (@mathias)Photo by Mathias Bynens (@mathias)Photo by Mathias Bynens (@mathias)Photo by Mathias Bynens (@mathias)Photo by Mathias Bynens (@mathias)Photo by Mathias Bynens (@mathias)
At #io19, @_gsathya and I gave a talk on cutting-edge JavaScript features: youtube.com/watch?v=c0oy0vQK… ➡️ WeakRef ➡️ Intl.* ➡️ Promise.{allSettled,any} ➡️ numeric separators ➡️ Array#{flat,flatMap} ➡️ Object.fromEntries ➡️ String#matchAll ➡️ …and more!
47
142
5
562
Replying to @addyosmani
@addyosmani Happy birthday!
1
6
3,366
📢 We’re aligning the ChromeDriver release process with that of Chrome! This makes it possible to easily grab compatible browser + driver binaries for any user-facing Chrome version across all release channels (Stable/Beta/Dev/Canary). More info: groups.google.com/g/chromedr…
1
2
10
6,128
Did you know that “old” Chrome Headless (2017–2023) was a separate, alternate browser implementation that just happened to be shipped as part of the same Chrome binary? 🤯 It doesn’t share any of the Chrome browser code in //chrome! Say hello to --headless=new in Chrome 112!
Chrome’s Headless mode just got a whole lot better! We made Headless more useful for developers by bringing it closer to Chrome’s regular “headful” mode. 👉🏼 developer.chrome.com/article…
16
108
11
563
208,040
If you’ve ever noticed surprising differences between running a test scenario manually vs. running it via automation (Puppeteer/Selenium/…) in Headless — this is probably why! The good news is that this entire category of issues is eliminated with the new Headless mode.
4
4
1
52
7,752
SVG supports `svgView(…)`, `viewBox(…)`, `preserveAspectRatio(…)`, and `transform(…)` in URL fragment identifiers 🤯
New article! SVG sprites: old-school, modern, unknown, and forgotten. It’s time to revisit the old SVG sprites trick and dig out a few alternative methods from the SVG spec and Internet archives 🧐 pepelsbey.dev/articles/svg-s…
2
21
2
143
The first commit to @WebKit was 21 years ago today. Safari was released two years later. WebKit open-sourced in 2005. trac.webkit.org/changeset/1
2
2
39
🔥 JavaScript regular expressions are getting more powerful! The RegExp `v` flag enables `unicodeSets` mode, unlocking support for Unicode properties of strings in \p{…}, set notation, string literal syntax, and other new features and improvements. v8.dev/features/regexp-v-fla…
9
83
9
342
RFC 9239 updates JavaScript MIME type registrations to align with reality. ➡️ The JavaScript MIME type is now unambiguously `text/javascript`. ➡️ `.mjs` is now a registered extension, specifically for JavaScript modules. rfc-editor.org/rfc/rfc9239 🧵
3
36
3
147
This unblocks tooling & server software like Apache to support JavaScript modules out of the box in a unified manner, like e.g. Node.js already does. Better industry alignment on MIME type and file extensions increases interoperability across tooling & other software.
1
9
Exciting to see soft typing in JS being explored again! However, I’m seeing lots of comments suggesting that JavaScript engines might use the new type info to somehow vastly improve run-time performance. 🚩 This is misleading. 🧵
6
54
10
212
@bmeurer and myself explained some of the reasons for this here: v8.dev/blog/react-cliff#valu… In short, there’s a fundamental mismatch between JavaScript-level types and engine-level value representation.
2
4
41
Replying to @aerotwist
@aerotwist Happy birthday! 🥳🎉🎊
1
13
'🇻🇦🇩🇲'.replace('🇦🇩', '🇬🇺'); // → '🇻🇬🇺🇲' '🇰🇷🇪🇹'.replace('🇷🇪', '🇳🇱'); // → '🇰🇳🇱🇹' '🇨🇵🇸🇨'.replace('🇵🇸', '🇻🇨'); // → '🇨🇻🇨🇨' '🇧🇧🇸🇱'.replace('🇧🇸', '🇪🇬'); // → '🇧🇪🇬🇱' '🇦🇹🇨🇺'.replace('🇹🇨', '🇸🇲'); // → '🇦🇸🇲🇺' '🇬🇱🇦🇪'.replace('🇱🇦', '🇮🇪'); // → '🇬🇮🇪🇪' github.com/mathiasbynens/fla…
fun fact! > "abcd".replace("bc", "ef") "aefd" > "🇧🇬🇭🇷".replace("🇬🇭", "🇦🇬") "🇧🇦🇬🇷" unicode is fun
2
6
3
51
The repository contains every possible variation of this gotcha according to Unicode 14’s definition of RGI_Emoji_Flag_Sequence. There’s 9,211,570 different variations clocking in at 718.50 MB.
3
Can I Unicode‽ update: Chrome 98 and Firefox 96 already support Unicode 14 in JavaScript identifiers & regular expressions! 🔥 mathiasbynens.github.io/cani…
3
10
1
31
Nice job on the quick updates, @v8js & @SpiderMonkeyJS!
1
The most popular emoji used worldwide are 😂 ❤️ 🤣 👍 😭 🙏 😘 🥰 😍 😊 (in that order). Find more emoji usage fun facts + the raw data at observablehq.com/@jenniferda… by @jenniferdaniel
1
1
1
29
Replying to @cramforce
@cramforce Happy CET birthday!
1
1
What’s that — proper non-ASCII interpunction in @v8js error messages?! What a time to be alive! That U+2026 HORIZONTAL ELLIPSIS 😍
2
21
For those wondering, this was the patch: chromium-review.googlesource…
1
3