@thisismissem Haven't tested it, but should be part of the `options` object.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import#options
Sharing web dev tricks with 5.7k people at webweekly.email
Today I learned Blogger
Maintaining tiny-helpers.dev
Pronouns: he/him
@thisismissem Haven't tested it, but should be part of the `options` object.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import#options
It was about time, wasn't it? π π
But now, with Firefox 138 all major browser engines support import attributes to import JSON from within your ECMAScript modules. π
β
Chromium: 123+
β
Safari: 17.2+
β
Firefox: 138+ (released 2w ago)
PS. This syntax works in modern Node.js, too!
With Chrome 136, we have a new RegExp method supported in all engines: `escape()`.
If you're wrangling regular expressions, it might come in handy!
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/escape
@scrwd Jake's linked article is a quite nice example of classes running static blocks. Maybe it'll help. :)
@kaiserkiwi Agreed. :)
@scrwd From the linked blog post.
TIL recap: Not too long ago, I learned that you can put "nameless static" blocks into ECMAScript classes. What do they do?
A static initialization block runs whenever the ECMAScript class is initialized (don't confuse this with using the class to create a new instance).
Fancy!
https://www.stefanjudis.com/today-i-learned/static-initialization-blocks-in-javascript-classes/
Adding accessible notifications using `aria-live` or `role=status`, `role=alert`, etc. isn't a straightforward task.
To notify assistive technology from JavaScript, you have to update the DOM, which is hard to get right and anything but convenient. That's why the Edge team proposes and trials a new DOM method β ariaNotify(). π±
I like it. What do you think?
https://blogs.windows.com/msedgedev/2025/05/05/creating-a-more-accessible-web-with-aria-notify/
@jonathan Can confirm "something" view transition'ish is in nightly 140 but looks wonky on my end. π€·
So let's see when it's ready to roll and when they move it into stable.
@jonathan If I read this correctly you need to use Nightly though. π«£
But yeah, I'm wondering if I'm missing out on all these smooth transitions, too.
For my fellow Firefox friends, we might see some eye candy eventually. π
Honestly, missing view transitions drove me pretty close to switching daily browsers... so let's see.
https://www.mozilla.org/en-US/firefox/140.0a1/releasenotes/#note-790833
The new Web Weekly is just about to hit all the inboxes. π«
If you want to stay up to date with the web platform, you should check it out. It's jam-packed this time.
@janmon Jan! I haven't seen your avatar in ages. I hope you're well!
Nice β thanks. I'll check it out!
@jon Thanks! I'll check it out!
I think I'm finally ready to leave Gmail / Gcal behind. What are the cool kids using these days?
@czichon I'd call this cheating then. :D But well played! π―
@czichon dang. That's a good score! ππ«΅
@matze haha! Smart. π«΅π
The new Web Weekly edition is just about to hit all the inboxes. πͺ
If you want to stay up to date with web development and the web platform, you should check it out!
It's, as always, full of cutting-edge but also general web best practices. π«£