Alan Dรกvalos's Avatar

Alan Dรกvalos

@alangdm.bsky.social

FE Engineer @TRAILBLAZER - Ex-LY - Anime/Manga/Games Enthusiast - Mexicano de ๐Ÿ’šโค๏ธ - ๆ—ฅๆœฌ่ชžใฏใ‚ขใƒ‹ใƒกใ‚’่ฆ‹ใชใŒใ‚‰ๅญฆใถใ‚‚ใฎใงใ™ - Opinions are mine

42 Followers  |  144 Following  |  3 Posts  |  Joined: 13.11.2024  |  1.8805

Latest posts by alangdm.bsky.social on Bluesky

Post image

Made a new Web Component: RichInput. It's a drop-in replacement for text-based <input> elements that can colourise user input.

A "stylepattern" attribute accepts a regex pattern and the resulting capture groups can be styled using CSS `::part(group-n)`

keithclark.github.io/richinput/

23.06.2025 20:46 โ€” ๐Ÿ‘ 135    ๐Ÿ” 24    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 0
Preview
Improving Prettier performance with the new CLI The new Prettier CLI - what it is and how it came to be.

We've been working hard at getting the new prettier cli released for some months now, and here it is! Huge speed ups and such a great collab between @e18e.dev and the prettier team ๐Ÿฉต big thanks to @fabiospampinato.bsky.social leading this!

23.06.2025 10:26 โ€” ๐Ÿ‘ 45    ๐Ÿ” 9    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Preview
Two lines of Cross-Document View Transitions code you can use on every website today Arguably, the most profound thing about the web is the ability to link one page to another.

The one where I muse about how this simple bit of code radically changes how the web itself seems to behaveโ€ฆ

webkit.org/blog/16967/t...

22.05.2025 18:36 โ€” ๐Ÿ‘ 144    ๐Ÿ” 23    ๐Ÿ’ฌ 4    ๐Ÿ“Œ 4
Preview
Node.js โ€” Node.js Releases Node.jsยฎ is a JavaScript runtime built on Chrome's V8 JavaScript engine.

Happy *Publish All NPM Packages as Standard JS Modules Only Day* to all who celebrate! ๐ŸŽ‰

All supported versions of Node now support require() of standard JS modules, aka require(esm).

So add type: "module" to your package.json, simplify your build, and spark some joy!

nodejs.org/en/about/pre...

01.05.2025 16:28 โ€” ๐Ÿ‘ 46    ๐Ÿ” 10    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 1

I'm optimistic that the next 12 months is going to a very special time for JS performance โšก

(This applies to developer workflows & end-users.)

Several large-scale independent multi-year language, runtime, tooling, & library investments are approaching the payback stage all around the same time.

26.04.2025 09:53 โ€” ๐Ÿ‘ 108    ๐Ÿ” 10    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 1
Screenshot of CSS Form Control Styling Level 1 First Public Working Draft web standard from the W3C's CSS Working Group

Screenshot of CSS Form Control Styling Level 1 First Public Working Draft web standard from the W3C's CSS Working Group

There it is! Finally, a real solution for how to style all of the HTML form controls using your own custom CSS to change anything โ€”ย building on an interoperable UA set of defaults.

First, styling the in-page part of controls + the popover for <select>. (Later weโ€™ll do popovers for more things.)

21.03.2025 23:21 โ€” ๐Ÿ‘ 483    ๐Ÿ” 96    ๐Ÿ’ฌ 10    ๐Ÿ“Œ 11
Preview
Migrating the ecosystem to ES modules An update on the progress we're making migrating packages to ES modules

in the @e18e.dev community, we've been hard at work helping migrate packages to ES modules recently. have a read about it in the new blog post!

20.03.2025 10:27 โ€” ๐Ÿ‘ 53    ๐Ÿ” 21    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 2
Stop Using and Recommending React I have used React for a long time. Trust me when I tell you: There is no reason to use it and a lot of reasons against it. This is going to be a long explanation, but bear with me!

โ€œYou can't say it any nicer: You can only write stable, well-performing React code if you have a team of exclusively experienced React developers.โ€

blog.lusito.info/stop-using-a...

19.03.2025 01:38 โ€” ๐Ÿ‘ 12    ๐Ÿ” 4    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I've used GitHub projects for my job's GHE instance and it works surprisingly good!

Especially since in the modern ones you have the Kanban and the table views, the charts, iterations, and a few other things

16.03.2025 14:35 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Video thumbnail

Home Assistant made a technical decision almost a decade ago that lasted ๐Ÿคฏ

27.02.2025 19:51 โ€” ๐Ÿ‘ 23    ๐Ÿ” 7    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Devices - ใ€ŽPokรฉmon Sleepใ€ๅ…ฌๅผใ‚ตใ‚คใƒˆ ใ€ŽPokรฉmon Sleepใ€ใจใ‚นใƒžใƒผใƒˆใ‚ฆใ‚ฉใƒƒใƒใจใฎ้€ฃๆบใŒๅฏ่ƒฝใซใชใ‚Šใพใ—ใŸใ€‚ๅ„็จฎ้€ฃๆบๆ–นๆณ•ใ‚’ใƒใ‚งใƒƒใ‚ฏใ—ใฆใ€ใ‚‚ใฃใจ่บซ่ฟ‘ใซใ€ŽPokรฉmon Sleepใ€ใ‚’ๆฅฝใ—ใ‚‚ใ†๏ผ

They are supported!
Fitbit and Pixel watches are too

www.pokemonsleep.net/devices/

24.02.2025 09:35 โ€” ๐Ÿ‘ 7    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
ESLint now officially supports linting of CSS - ESLint - Pluggable JavaScript Linter A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.

๐Ÿš€ ESLint now officially supports linting CSS!

Read more:
eslint.org/blog/2025/02...

18.02.2025 16:52 โ€” ๐Ÿ‘ 126    ๐Ÿ” 28    ๐Ÿ’ฌ 4    ๐Ÿ“Œ 5
Preview
Bundling dependencies (and when not to do it) A brief write up on when you should or shouldn't bundle dependencies

some thoughts on bundling dependencies in libraries and dev tools. especially given the great effort from the community lately, we need to bundle less and less (in consumed packages)

14.02.2025 12:05 โ€” ๐Ÿ‘ 31    ๐Ÿ” 9    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 1
Preview
Style-observer: JS to observe CSS property changes, for reals โ€ข Lea Verou I cannot count the number of times in my career I wished I could run JS in response to CSS property changes, regardless of what triggered them: media queries, user actions, or even other JS. Use cases...

๐Ÿš€ ๐Ÿ†• style-observer: A robust solution for observing CSS property changes in JS.

Developed with @d12n.meโ€™s help over the last month.

Made possible by the pioneering work of @bram.us, Artem Godin, @janeori.propjockey.io and many others!

Blog post: lea.verou.me/blog/2025/st...
Docs: observe.style

12.02.2025 15:03 โ€” ๐Ÿ‘ 273    ๐Ÿ” 59    ๐Ÿ’ฌ 6    ๐Ÿ“Œ 2
Preview
[v20.x] backport unflagging of require(esm) to v20 by joyeecheung ยท Pull Request #56927 ยท nodejs/node This backport includes the following PRs with modifications: See summary module: eliminate performance cost of ESM syntax detection for CommonJS entry pointsย #52093: Adapted to the lack of packag...

`require(esm)` got backported to Node 20! ๐ŸŽ‰

When Node 18 hits EOL in less than 3 months, we can finally drop CJS builds and go ESM-only

11.02.2025 22:12 โ€” ๐Ÿ‘ 144    ๐Ÿ” 33    ๐Ÿ’ฌ 9    ๐Ÿ“Œ 8
Video thumbnail

<table> highlighting with CSS :has() ๐Ÿ’ก

td:has(~ td:hover), /* previous sibling cells */
table:has(td:nth-of-type(3):hover) /* column cells */
tr:not(:first-of-type):has(~ tr:hover)
td:nth-of-type(3) {
background: var(--highlighted);
}

05.02.2025 21:07 โ€” ๐Ÿ‘ 390    ๐Ÿ” 39    ๐Ÿ’ฌ 16    ๐Ÿ“Œ 1
A table that gives ideal versus actual page size and JavaScript size:

The ideal JS weight is under 365 kilobytes. The actual median JS weight is 650 kilobytes. The actual JS weight at the 90th percentile is 1825 kilobytes.

The ideal total page weight is under 1.4 megabytes. The actual median page weight is 2.6 megabytes. The actual JS weight at the 90th percentile is 11.1 megabytes.

A table that gives ideal versus actual page size and JavaScript size: The ideal JS weight is under 365 kilobytes. The actual median JS weight is 650 kilobytes. The actual JS weight at the 90th percentile is 1825 kilobytes. The ideal total page weight is under 1.4 megabytes. The actual median page weight is 2.6 megabytes. The actual JS weight at the 90th percentile is 11.1 megabytes.

I recently published my annual dive into the
@httparchive.org, focusing on page growth, #webperf and #ux:

www.speedcurve.com/blog/page-bl...

A common question is "How big SHOULD my pages be?" According to analysis by @infrequently.org, the ideal page should be <1.4 MB with <365 KB coming from JS.

05.02.2025 19:12 โ€” ๐Ÿ‘ 37    ๐Ÿ” 14    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 3
Preview
Move on to ESM-only Let's move on to ESM-only

New blog post! Let's move to ESM! ๐Ÿ˜ˆ

๐Ÿ‘€
antfu.me/posts/move-o...

05.02.2025 08:12 โ€” ๐Ÿ‘ 426    ๐Ÿ” 78    ๐Ÿ’ฌ 27    ๐Ÿ“Œ 13
Post image Post image

Preact is truly amazing.

Same React app. One is bundled as is.

Another uses preact/compat to alias React imports and swaps in Preact under the hood.

Bundle size (gzip):
React: ~140KB
Preact: ~8KB

All of this by just changing a few lines and installing a couple of packages.

10.01.2025 20:22 โ€” ๐Ÿ‘ 65    ๐Ÿ” 14    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
premium segment phones make up a tiny fraction of the overall smartphone market. *MOST* devices cost *much* less than $350 (new, unlocked), which is $85 less than the cheapest new iPhone you can buy.

premium segment phones make up a tiny fraction of the overall smartphone market. *MOST* devices cost *much* less than $350 (new, unlocked), which is $85 less than the cheapest new iPhone you can buy.

Single-core CPU performance continues to be abysmal in the Android ecosystem. And it's worse than even this looks because *most* phones are more than 2 years old.

Single-core CPU performance continues to be abysmal in the Android ecosystem. And it's worse than even this looks because *most* phones are more than 2 years old.

Cannot emphasise enough how out of touch web developers have become. The blue dotted line in this chart is worldwide average selling price for smartphones over the past decade, and the second chart is CPU performance.

10.01.2025 08:14 โ€” ๐Ÿ‘ 37    ๐Ÿ” 12    ๐Ÿ’ฌ 4    ๐Ÿ“Œ 0
Preview
The journey so far Our journey so far as a community leading into 2025

Written a little about the journey to @e18e.dev and what's ahead for the community in 2025. I'm so happy to see how many great minds have been connected, and the awesome projects they're working on ๐Ÿฉต

06.01.2025 16:38 โ€” ๐Ÿ‘ 64    ๐Ÿ” 20    ๐Ÿ’ฌ 5    ๐Ÿ“Œ 2

Good writeup from @css-tricks.com on the situation with "Masonry"โ€  and whether it belongs as part of grid or its own `display` type. It's largely neck-and-neck and won't move unless some minds on either side change.

css-tricks.com/csswg-minute...

โ€  Still a bad name.

10.12.2024 21:48 โ€” ๐Ÿ‘ 79    ๐Ÿ” 13    ๐Ÿ’ฌ 9    ๐Ÿ“Œ 1
Preview
Donโ€™t Use aria-label on Static Text Elements Donโ€™t use the aria-label or aria-labelledby attributes on divs, spans, or other elements representing static/noninteractive text-level semantics, unless youโ€™re also updating roles.

๐Ÿ“ New post!

`aria-label` and `aria-labelledby` aren't allowed on divs, spans, and other static text elements out of the box, and *most* screenreaders won't announce them.

#accessibility #a11y

07.12.2024 19:57 โ€” ๐Ÿ‘ 280    ๐Ÿ” 84    ๐Ÿ’ฌ 12    ๐Ÿ“Œ 14
Preview
If Not React, Then What? - Infrequently Noted Frameworkism is now the dominant creed of today's frontend discourse, and it's bullshit. We owe it to ourselves and to our users to reject dogma and embrace engineering as a discipline that strives to...

I've come to understand what's happening in frontend's decade-long failure to deliver decent user experiences as a sort of epistemic closure. I'm calling it "frameworkism", and the epicenter is now React. Here's a lot of words on why we should all reject it:

infrequently.org/2024/11/if-not-rโ€ฆ

30.11.2024 01:21 โ€” ๐Ÿ‘ 178    ๐Ÿ” 53    ๐Ÿ’ฌ 16    ๐Ÿ“Œ 24
Preview
Enable scoped custom element registry by default ยท WebKit/WebKit@f4b8ec1 https://bugs.webkit.org/show_bug.cgi?id=283379 Reviewed by Wenson Hsieh. Enable this feature by default now since it passes all web platform tests except ones for customized builtins. * Source/W...

Implemented scoped custom element registry in WebKit: commits.webkit.org/286828@main
We now have two interoperable implementations!

20.11.2024 01:47 โ€” ๐Ÿ‘ 34    ๐Ÿ” 9    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 2
Video thumbnail

Take this `<dialog>` too

classic; cart in the top right, pushes the whole page left to reveal your cart sidenav

nerdy.dev/have-a-dialog #CSS

16.11.2024 03:15 โ€” ๐Ÿ‘ 197    ๐Ÿ” 12    ๐Ÿ’ฌ 6    ๐Ÿ“Œ 0

This is the way (for most sites):

gov.uk/service-manual/tโ€ฆ

17.11.2024 13:00 โ€” ๐Ÿ‘ 4    ๐Ÿ” 2    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
When is the right time to share our excitement about new web features? โ€“ Rachel Andrew

"When is the right time to share our excitement about new web features?"

rachelandrew.co.uk/archives/202...

Good thoughts on a tricky problem by @rachelandrew.bsky.social

17.11.2024 14:51 โ€” ๐Ÿ‘ 5    ๐Ÿ” 6    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Hey there, I made an account here too now that the other side is not fun anymore.

I haven't been posting much lately but when I do it will likely be front-end stuff (mostly web components and CSS).

18.11.2024 07:41 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@alangdm is following 20 prominent accounts