tfw react finally ships support for custom elements
https://mastodon.social/@wonderofscience/110213818915651018

A versioned archive of posts from Bluesky, Mastodon, GitHub, npm, YouTube, Letterboxd, Hacker News, and blogs. Browse the most popular posts.
Last built .
| Since | posts | replies | likes | reposts and quotes | views | |
|---|---|---|---|---|---|---|
| Bluesky | 1,060 | 8,448 | 23,541 | 2,416 | ||
| Mastodon | 2,426 | 29,404 | 55,834 | 16,898 | ||
| GitHub | 179 | 5,811 3,560 | 33,905 | 3,316 | ||
| npm | 141 | 1,567 | 81,303,467 | |||
| YouTube | 30 | 1,206 | 32,967 | |||
| Letterboxd | 60 | |||||
| Blog | 21 | |||||
| Hacker News | 59 | 575 | 802 | |||
| All | 4,861 | 38,427 | 115,288 | 22,630 | 81,336,434 |
tfw react finally ships support for custom elements
https://mastodon.social/@wonderofscience/110213818915651018

achievement unlocked: assembled ikea furniture with a five year old… helper
I’m reading this excellent theme switcher blog post from @mxbck
https://mxb.dev/blog/color-theme-switcher/
…and I wondered if there was an open standard or tooling to generate tokens in said format.
I know this community group exists for it! https://www.w3.org/community/design-tokens
What tools are y’all using to generate your design token source files?
A modern starter project using Eleventy and WebC.
being on linkedin feels like dumpster-diving in an enterprise roll-off garbage bin
Loving the unique layout of @lmorchard’s personal site: https://lmorchard.com/
Oooh the new enhance.dev web site looks great! Congrats @colepeters @brianleroux @kristoferjoseph and team!
“it doesn’t scale to your current needs but it will definitely scale to your future needs”
Prism.js based syntax highlighting for Markdown, Liquid, Nunjucks, WebC, and 11ty.js templates.
“I would never have our content go anywhere that would risk our credibility.”—NPR CEO John Lansing commenting on NPR shuttering its 52 accounts on Twitter earlier today.
https://www.npr.org/2023/04/12/1169269161/npr-leaves-twitter-government-funded-media-label
sites vs the app directory
don’t mind me, just shopping around for a web framework

yay—it merged! https://github.com/mdn/browser-compat-data/pull/19334
spotted at LEGO Land today ❤️

objectively the best corporate or conference swag is crocs
even better if paired with themed socks
no I will not be taking questions at this time
New blog post:
3 Methods for Scoped Styles in Web Components That Work Everywhere
Demo of rendering modes of WebC components: Shadow DOM versus HTML
okay AM radio is good for the morning but what do I listen to in the PM
Here’s an HTML-only check for Declarative Shadow DOM support that I used in a demo just now:
```
<div>
<p>Declarative Shadow DOM is <strong>⚠️ not supported</strong> in your browser.</p>
<template shadowrootmode="open">
<p>Declarative Shadow DOM <strong>✅ is supported</strong> in your browser.</p>
</template>
</div>
```
every day can be css naked day when you have a css toggle in your footer ok bye
it’s a good day when you submit a PR to browser-compat-data
“Evergreen” Does Not Mean Immediately Available
Great post by @eric
https://css-tricks.com/evergreen-does-not-mean-immediately-available/
Single File Web Components
the number of web sites should never be finite
The 5-year stability of Eleventy, in which I revert the eleventy-base-blog project from v8 to v1 to see if it will still run on Eleventy v2.0 😰😅
@Schepp I’m just seeing your “DMs” 😅
if you want to delete those and continue the conversation here that might be best!
Working on a WebC demo to show how to easily swap a web component between different rendering modes:
1. Server rendered plain HTML
2. Declarative Shadow DOM
3. JS-only (boo) Shadow DOM
Stay tuned!
it’s always jet lag and never jet 120fps
a developer and react—a play in one act
no one tell the two javascript conferences I’m speaking at next month

Companion code to the “6 Minutes to Build a Blog from Scratch” tutorial
Just got my travel sorted for JSNation in Amsterdam on June 1st—see y’all there!
Single File Web Components
> Why did you choose Preact to build the directives system? Why not React or another JavaScript framework?
> It’s HTML-friendly (unlike React).
—WordPress core commenting on their Interactivity API proposal.
via @developit
Single File Web Components
WebC support for Eleventy adds for Single File Web Components
Single File Web Components
call me when he’s outdicted
dangerouslyBundleIsomorphicJavaScript
Execute a string of JavaScript using Node.js and return the global variable values and functions.
are you trying to tell me that the griddy has nothing to do with css grid
I’m not saying that I don’t trust people that don’t have a personal web site—no, that would be silly, right?
so silly
Low level utility to perform build-time image transformations.
Single File Web Components
eye appointments be like “let’s use these eye drops that make your vision bad to make sure your vision isn’t bad”
Looks like https://www.zachleat.com/web/single-page-applications/ popped off on the orange site, currently holding 113 well reasoned comments—featuring gems like:
💎 “React 16 is about 5 KB uncompressed”
💎 “228 kB of JavaScript? That's a moderately sized image”
💎 “His way to make a website available to any browser is to use an API that nothing but the latest Chrome supports?”
💎 “is SEO important in 2023? how much traffic is coming from Google that converts to paying customers or clients?”
@bholmesdev ah I tried joining again and you were there but not there? 😭
@bholmesdev not able to make it today?
WebC support for Eleventy adds for Single File Web Components
A simpler (static) site generator.
A simpler (static) site generator.
If your name is @kateholterhoff and you’re conversing with certain Next.js framework authors on a twitter thread (that mentions me), this timeline might interest you:
April 2020: `unstable_runtimeJS` merged to Next
https://github.com/vercel/next.js/pull/11949
Sept 2021: “øJS is coming to Next 🔜”
https://twitter.com/rauchg/status/1437494013137805312
Lest history be revised, “øJS is coming soon” was not referencing the already released `unstable_runtimeJS` feature. So what was it referencing (on a thread about islands architecture)? 🫠
Them: ____ is in early PRIVATE BETA and NOT RECOMMENDED for production use.
Me: I just put up a new alpha on the canary channel and I’m using it in production on 13 sites
Defaulting on Single Page Applications (SPA)
the faux meritocracy of pencils: why #2 is number 1
WebC support for Eleventy adds for Single File Web Components
Single File Web Components
oh no it’s quite a few github domains: https://github.com/orgs/community/discussions/50966
oops the certificate expired for https://avatars.githubusercontent.com/ 🫠
(github avatar outage)
no I’m not sorry
LL Cool M
7. *react stays in the chat* we hear you, it’s too much javascript. but what if we put SVG in javascript too—would that help?
6. *react enters the chat* we hear you, it’s too much javascript. but what if we put our css in there too—would that help?
1. add library javascript
2. add app javascript
3. …oh no, this is too much javascript
4. let’s add more javascript for client-side navigation so that we don’t have to re-run the other javascript
5. …oh no
a little shout out to that “IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!” copy though
a new mantra dropped
If you’re having trouble pushing to GitHub today, perhaps seeing scary new errors on your console like this:
> WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Don’t freak out, just read this:
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/
seeing folks jokingly use the term “woke” and I think we can file those right next to the “make ___ great again” jokes
we can do better!
A simpler (static) site generator.
mapquest was the original 90s-style navigation
A simpler (static) site generator.
Now that yesterday’s dust has settled—we recognize that create-next-app does in fact default to TypeScript and Tailwind, right?
A custom, focused build of lodash exclusively for use internally in Eleventy.
A custom, focused build of lodash exclusively for use internally in Eleventy.
https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides to override a outdated shrinkwrapped dependency was clutch today.
Trying to use `lodash-cli` with the latest version of `lodash` and this `package.json` addition did the trick:

today is a good day to get excited about web sites
The new https://set.studio/ site launched with excellent work from @Amy_Hupe@social.design.systems Leanne @j98 and @andy!
I am really loving those live responsive previews of portfolio sites right on the home page (and the beautiful little resizer too) 😍
this subtoot brought to you by the developer currently attempting to convince the world that a pre-selected “Yes” value in a command line prompt is not a default choice.
The more time I spend in tech the more evidence mounts that misunderstanding consent is the root cause of so many issues.
Which is faster?
1. Total Blocking Time of one visit to nextjs.org
2. The time it takes to Eleventy to build ×1000 pages added to the Total Blocking Time of one visit to 11ty.dev
the toilet paper industry will sell you a hyper-localized drone delivery solution to ensure that you will never run out of toilet paper during business time when all you really needed was a bidet
in this essay about the JavaScript industrial complex I will…
When JavaScript Fails:
“We’re not talking about 3% of users being affected, but 3% of visits. Remember, the problem isn’t that people have turned JavaScript off, it’s that JavaScript isn’t reliable. Meaning it affects all of us, about 3% of the time.”
https://scribe.rip/@jason.godesky/when-javascript-fails-52eef47e90db
by Jason Godesky (https://jason.godesky.net/) via @slightlyoff
✅ Use the latest version of an ESM dependency: fine.
✅ Use the latest version of a CJS dependency: also fine.
❌ Pinning to a previous CJS major release that worked without issues after they bumped a major release for nothing other than ESM: ew, what? no—gross
Interesting that at some point @eleventy was removed from https://vercel.com/templates despite being more popular than some of the frameworks listed there 🤔
in my personal experience every relationship (that I’m personally a part of) has one person with 13 tabs open in their browser and one with 217 tabs open
A simpler (static) site generator.
A simpler (static) site generator.
Use Vue.js single file components in Eleventy.
how dare you all
Fetch and locally cache remote API calls and assets.
Don’t vote for which one you’ve been conditioned to use, vote for which one is objectively best:
(choices pruned from https://en.wikipedia.org/wiki/Pajamas)
Suspense (sə-spĕns′)
> Anxiety or apprehension resulting from an uncertain, undecided, or mysterious situation.
> The state or quality of being undecided, uncertain, or indecisive.
…in hindsight maybe not the best branding choice.
Uploaded my slides from the @eleventy meetup talk from this morning: https://www.zachleat.com/web/eleventy-meetup-eleventy-v2/
Watch for the video on the Eleventy Meetup YouTube channel! https://www.youtube.com/@THEEleventyMeetup
The @eleventy Meetup is happening now!
Found another one from 2017 for the React criticism timeline https://twitter.com/NetflixUIE/status/923374215041912833