A reusable announcement bar banner component.
herald-of-the-dog@1.0.4
A reusable announcement bar banner component.
I didn’t realize web components had their own emoji—nice 🚾
RCS on iOS before Custom Elements in React? I win the pool
`text-wrap: balance` is very useful and I would humbly request that it have more browser support please—thank you.
Just a few short words on a social media post changed my whole perspective on a thing—huh.
I’m reminded of this particular moment in 2018 when @jaffathecake quickly convinced me of the unique value of HTML web components:
A New Technique for Image Optimization: SVG Short Circuiting
Free project idea: automated script to test the completeness of a web ring. Do all member sites in the ring include the web ring links?
you know bluesky is super secure because it regularly invalidates your session and makes you log in again
the nostaglia of the “remember me” checkbox
as @jgamble noted, the use of "Never" in the first poll option was not quite good enough—I’ve edited the options which means y’all get to vote again 😅
How safe/risky do y’all think it is to assume WebP as a baseline for content images? (instead of JPEG/PNG)
Feel free to look here before you vote: https://caniuse.com/webp
A new (experimental) technique for image optimization: SVG Short Circuiting
Wishing the best for friends laid off this week. Remember that layoffs are nothing more than evidence of inept leadership.
Web components.
speedlify-score@4.0.2
A web component to show Lighthouse scores via Speedlify
speedlify-score@4.0.1
A web component to show Lighthouse scores via Speedlify
speedlify-score@4.0.0
A web component to show Lighthouse scores via Speedlify
the space jam web site is not just timeless—it is immortal
and as much as it wishes for the sweet kiss of downtime, downtime eludes it
many a wp-admin request have been met with nothing more than an unceremonious 404—and countless more will fail behind them
Wishing the best for friends laid off today. Remember that layoffs are nothing more than evidence of inept leadership.
I felt silly for preemptively locking the @eleventy issue about switching to tabs and now I’m very glad that I did—the opinion-havers have arrived with opinions 🫠
wearable AI embedded in a belt buckle
github actions are wild https://github.com/marketplace/actions/support-requests
for real though are support requests just bug reports that don’t have a test case
Added a little search to my web site, as a treat https://zachleat.com/search/
* via https://pagefind.app/
* enhances from a DuckDuckGo <form>
* unnecessarily lazy loaded via <is-land> 😅
@zachleat/squirminal@2.0.6
Squirminal incrementally reveals text inside any arbitrary DOM element structure.
@zachleat/resizeasaurus@4.0.3
A web component to add resizing behavior to test intrinsically sized responsive components.
@zachleat/resizeasaurus@4.0.2
A web component to add resizing behavior to test intrinsically sized responsive components.
@zachleat/browser-window@1.0.12
Used in demos as a way to fake a Safari-esque web browser window.
Confession: in my Web Components journey I’ve used Shadow DOM on a few components and it made sense to do so and it worked well (no regrets).
Remember that these different styles of component are tools in the toolbox.
Shadow DOM isn’t a silver bullet (or even a good default choice) but when you understand the tradeoffs you’re making and weigh those against the purpose and use case of the component, it sometimes makes sense to use it!
(And if you’re new to Web Components, don’t start here)
@zachleat/browser-window@1.0.11
Used in demos as a way to fake a Safari-esque web browser window.
@zachleat/browser-window@1.0.10
Used in demos as a way to fake a Safari-esque web browser window.
@zachleat/browser-window@1.0.9
Used in demos as a way to fake a Safari-esque web browser window.
via https://adactio.com/journal/20618
1. HTML web components
2. Element extensions (from @davatron5000)
HTML web components from @adactio
https://adactio.com/journal/20618
(Adding more entries to the naming party started here https://fediverse.zachleat.com/@zachleat/111211208759538433)
This one lives on my web site now too: https://www.zachleat.com/web/site-mounting/
an ad-blocker but instead of ads it blocks mass-plagiarized AI-generated content
Even the ability to set up cross-project dependencies to automatically build dependent projects is cool—but with @cloudcannon’s just-shipped brand new Site Mounting feature you can share files, folders, components, data, and content between those projects too (pre-build or post-build!).
In this video I show you how it works: https://www.youtube.com/watch?v=IwZf9VdQbKo
before I flush my DNS can anyone tell me if it’s septic-safe
It’s been almost a year since I left Twitter, seems like it’s a good time to do an anonymous poll (if you have multiple accounts, scope your answer to your personal Twitter account only please):
some abstractions are for-profit weaponized complexity
@zachleat/squirminal@2.0.5
Squirminal incrementally reveals text inside any arbitrary DOM element structure.
@zachleat/browser-window@1.0.8
Used in demos as a way to fake a Safari-esque web browser window.
One of the underrated benefits of mastodon is that when you manage multiple accounts (on distinct instances) you don’t need to hit a button to switch accounts—you can just go to a different URL.
may we muster the mental toughness and grit necessary to serendipitously record something incredible on our phone without shouting “I got that on video!!” afterwards
my drafts folder is popping off this morning with posts that will never see the light of day 😅
frontend = cheetah
backend = elephant
isomorphic = let’s tie the cheetah and elephant together to improve our velocity
okay yes the original wordle was built with web components but what if wordle had been a standalone web component
A brand new mascot commissioned from @reverentgeek.com has wandered on to the web site!
If you have a name idea for this critter, please let us know!
I will have a lot of explaining to do when my kids find out that reese‘s cups aren’t loaded with coconut
node-retrieve-globals@3.0.1
Execute a string of JavaScript using Node.js and return the global variable values and functions.
node-retrieve-globals@3.0.0
Execute a string of JavaScript using Node.js and return the global variable values and functions.
esm-import-transformer@3.0.0
Perform transformations on ESM import syntax (using import maps or to a dynamic import).
esm-import-transformer@2.0.0
Perform transformations on ESM import syntax (using import maps or to a dynamic import).
my linkedin friend demographics are way too tilted toward VC, startup culture, and AI—I would appreciate more friends over there to help balance it out: https://www.linkedin.com/in/zachleat/
everyone needs to buy my startup’s expensive dishes and they only work in the newest dishwashers
if you buy 40 dishwashers you only have to put one dish in each and it’s more efficient
if we smash all the dishes, we can fit more in there
top javascript developer techniques for loading the dishwasher:
re: https://social.lol/@bw/111293266036805485
npm isn’t the problem—it’s the larger JavaScript community’s attitude about long-term maintainability and moving fast while breaking things.
Here’s a successful 5-year experiment I ran using @eleventy (and npm): https://www.11ty.dev/blog/stability/
I somehow missed this a few months back, but it looks like @astro’s VC-monetization has begun as they dip into a very crowded cloud database field.
https://m.webtoo.ls/@astro/110990933184968823
Wishing them success! I’d wager there is a lot riding on this move.
@zachleat/squirminal@2.0.4
Squirminal incrementally reveals text inside any arbitrary DOM element structure.
@zachleat/squirminal@2.0.3
Squirminal incrementally reveals text inside any arbitrary DOM element structure.
@zachleat/squirminal@2.0.2
Squirminal incrementally reveals text inside any arbitrary DOM element structure.
@zachleat/squirminal@2.0.1
Squirminal incrementally reveals text inside any arbitrary DOM element structure.
@zachleat/squirminal@2.0.0
Squirminal incrementally reveals text inside any arbitrary DOM element structure.
Just enabled the elastisearch feature on my @mastohost instance and wow—it hadn’t clicked before but this is a feature that Twitter never had.
I can search my stream**!
(**for folks that have opted in to search)
minimum viable HTML for a modern web site:
<title>so modern</title>
@11ty/eleventy-img@3.1.8
Low level utility to perform build-time image transformations.
@11ty/eleventy-img@3.1.7
Low level utility to perform build-time image transformations.
you know I’m gonna boost a zero-dep web component
the https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js is not coming from inside the house!
this… is not a me-problem 😅

@zachleat/browser-window@1.0.7
Used in demos as a way to fake a Safari-esque web browser window.
I think GitHub wants me to Confirm my account recovery settings

@setstudio @andy device pixel ratios further complicate this story 😅
The Ideal Viewport Doesn’t Exist
Loved the visual example of 3 distinct viewports on a single iOS device: Safari, in-app browser (boo!), and the long-press quick preview.
By our friends at @setstudio (@andy et al!)
I suppose I’m on Team Build
…but not a big build
So maybe Team Little Build
…but I wouldn’t get rid of the build totally—it’s useful!
Team Gossamer-thin Build?
I asked for a coke and they asked me if pepsi was okay but I lost touch with pepsi a few years back. are they okay? does anyone know?
@zachleat/resizeasaurus@4.0.1
A web component to add resizing behavior to test intrinsically sized responsive components.
Am I finally going back and publishing my backlog of web components to my web site? Yes, yes I am. Here’s another:
<squirm-inal>
A heavy-handed portmanteau of squirmy and terminal. This one progressively reveals any arbitrary HTML content.
https://www.zachleat.com/web/squirminal/
And a lesson on when server rendering is not optimal, actually 😅😅😅
Shipped a few quick updates to <browser-window> today:
🪟 Option for Windows-style icons (thank you @lucienimmink!)
🖼️ Option to specify your own icon using `<img slot="icon">` (idea from @rem)
https://zachleat.github.io/browser-window/demo.html
Thanks y’all!
@zachleat/browser-window@1.0.6
Used in demos as a way to fake a Safari-esque web browser window.
@zachleat/browser-window@1.0.5
Used in demos as a way to fake a Safari-esque web browser window.
@zachleat/resizeasaurus@4.0.0
A web component to add resizing behavior to test intrinsically sized responsive components.
Oh my—the desktop viewport navigation UX on https://www.cloudflare.com/ is confusing.
I thought I had navigated to a new page and then I was upset that it didn’t give me a history entry to go back—but it was just a full window popup with almost no affordance that the content was still underneath 🫣
“[Vercel’s] vendor lock-in is good actually” is not a take I expected to read in the year 2023, but yet here we are. 🧐
Happening today, Friday October 27 (in about 2 hours):
Sure to be a good discussion about possible next steps for the Jamstack Community from @cloudcannon.bsky.social’s @mikeneumegen.bsky.social and @netlify.com’s @biilmann.bsky.social:
@11ty/eleventy-img@3.1.6
Low level utility to perform build-time image transformations.
@11ty/eleventy-img@3.1.5
Low level utility to perform build-time image transformations.
Doing some research for @cloudcannon Image optimization and had an idea for a very cool `<picture>` performance improvement for @eleventy Image 👀
Stay tuned!!
@11ty/eleventy-img@3.1.3
Low level utility to perform build-time image transformations.
@11ty/eleventy-img@3.1.2
Low level utility to perform build-time image transformations.
https://www.epicweb.dev/why-i-wont-use-nextjs from @kentcdodds details some of the very big problems that have been echoing for years through Vercel, Next.js, and React.
Here’s what he listed:
1. Not using The Platform
2. Vendor locked to Vercel
3. Next.js is eating React 🫡
4. Uses experimental features in stable releases
5. Overrides global fetch
6. Complexity in RSC
7. Instability
A good addition to https://www.zachleat.com/web/react-criticism/
@zachleat/resizeasaurus@3.0.5
A web component to add resizing behavior to test intrinsically sized responsive components.
zachleat/demo-cloudcannon-image-optimization
yes 2FA is great for security but also 2FA can save you from running an accidental `npm publish` command too (speaking for a friend, who allegedly was saved by this, just now)
@zachleat/browser-window@1.0.4
Used in demos as a way to fake a Safari-esque web browser window.
New web component dropped: <browser-window>
Fake some Safari-esque browser chrome in a demo or web-based slide deck.
📓 Blog post: https://www.zachleat.com/web/browser-window/
🎪 Demo: https://zachleat.github.io/browser-window/demo.html
💾 Code: https://github.com/zachleat/browser-window/