WebC support for Eleventy adds for Single File Web Components
@11ty/webc@0.9.3
Single File Web Components
Today I learned: Node’s `vm.createContext` function is quite slow!
https://nodejs.org/api/vm.html#vmcreatecontextcontextobject-options
Some big (dare I say huge) WebC performance wins incoming 🏆
now you wait just one second—are you really attempting to convince me that I can’t do everything and be everything to everyone
rude
if you add enough JavaScript, it will modulus your site back to fast again—we just haven’t found the threshold yet—stay the course everyone, keep adding more!
@swithinbank added sparklines to speedlify.dev and they look incredible! 😍
It strikes me that it might be useful to have a comprehensive web performance analysis tool with similar flame graph output that reports a holistic view of the performance of a web site (showing how every asset on the site influences the performance, not just JavaScript execution).
Does this exist?
Using `0x` to do some flame graph build performance analysis of an Eleventy project, super useful!
https://github.com/davidmarkclements/0x
You can use it on your Eleventy project too:
0x node_modules/@11ty/eleventy/cmd.js --quiet
currently wondering how many client-rendered SPA implementations are just hiding slow servers
https://vulpine.club/@eevee/110019362386656521
and now I’m wondering about the future relationship between SPA and slower-than-static request-time frameworks
anyway, happy tuesday
free bad idea: type safe DOM
check yourself before you DOMRect yourself™
@11ty/eleventy-dev-server@1.0.4
A minimal, modern, generic, hot-reloading local web server to help web developers.
the toots archive is alive!! 🫀🫀🫀 https://www.zachleat.com/toots/
node-retrieve-globals@2.0.6
Execute a string of JavaScript using Node.js and return the global variable values and functions.
RT @tailwindcss@twitter.com HTML is better than JavaScript
when my dog gets eye boogies and I know she doesn’t have the anatomical equipment required to even have a chance at removing them—imma get those out immediately every time. I’ll chase her around the house, I’m getting those boogies out
A build step is great for front-end developers because it’s forgiving to code outside the specialty of front-end.
We can write slow and inefficient back-end code 😅 and pair it with what we’re good at: high quality, efficient, high-performance front end code.
node-retrieve-globals@2.0.5
Execute a string of JavaScript using Node.js and return the global variable values and functions.
@11ty/eleventy-plugin-bundle@1.0.4
Little bundles of code, little bundles of joy.
@eleventy Don’t get me wrong, I’m all in on Mastodon and this is my home base moving forward—but I really pushed hard to set an example and cut-off Twitter 100% across-the-board.
I’m learning that this was not entirely tenable for a Brand Account—especially when folks with large follower counts weren’t willing to do the same.
I think @eleventy is going to have to return to at least broadcast content to Twitter, unfortunately. Given that a large portion of JavaScript folks have really dug in over there—it is doing harm to the project to not exist in those spaces.
Having some real feelings about it—mostly disappointment that folks didn’t make a bigger push to get off of the site.
When folks say: “Browsers are pretty fast. Hardware is pretty fast” 🚩🚩🚩 they really mean “My browser is pretty fast. My hardware is pretty fast.”
@11ty/is-land@4.0.0
A framework independent partial hydration islands architecture implementation.
@11ty/webc@0.9.2
Single File Web Components
the side-eye has gone so far it has completed a full 360° revolution
mastodon question: why do I get follow requests on a public account?
is it just my brain that has been holeheartedly ruined or do other folks see it too
happy sunday

Pushed a bad commit to the site at the end of the day… did I fix it? No, I rolled back, locked deploys, and now I’m leaving byeeeeee
The JavaScript Site Generator Review, 2023
Stable releases of both `@11ty/webc` and `@11ty/is-land` now include support for the new `shadowrootmode` Declarative Shadow DOM attribute 🏆
@11ty/eleventy-plugin-webc@0.9.3
WebC support for Eleventy adds for Single File Web Components
@11ty/eleventy-plugin-webc@0.9.2
WebC support for Eleventy adds for Single File Web Components
@11ty/webc@0.9.1
Single File Web Components
Here’s a sneak peek at the magic coming to WebC:
https://github.com/11ty/webc/issues/122
Easily bundle up all of the CSS and JS for *any* element and *all* of its child content with a single `webc:bucket` attribute, with smart hoisting to the next bucket when needed.
@11ty/eleventy-plugin-bundle@1.0.3
Little bundles of code, little bundles of joy.
a watched github action never boils
@11ty/eleventy-plugin-bundle@1.0.2
Little bundles of code, little bundles of joy.
A Historical Reference of React Criticism
@11ty/is-land@3.0.2
A framework independent partial hydration islands architecture implementation.
I’m guessing the standards folks would rather we use `shadowrootmode` only moving forward, as using the old name defeats the purpose of renaming the attribute? 😅
Current Declarative Shadow DOM browser support:
Chrome 90, Edge 90, Samsung Internet 15
`<template shadowroot="open">`
Chrome 111, Safari Technology Preview 162
`<template shadowrootmode="open">`
It’s tempting to use both `<template shadowroot="open" shadowrootmode="open">` for the broadest browser support, hmm.
https://caniuse.com/mdn-html_elements_template_shadowrootmode
Working on some really exciting WebC/<is-land> bundling magic today
speak softly and put down the big stick—it’s heavy and you’ve been carrying it for so long
I simultaneously like that this exists and would also like to preemptively apologize for this existing https://www.bryanbraun.com/checkboxland/
(via @bholmesdev)
A few updates to the JavaScript Site Generator Review, February 2023 edition:
1. Added @enhance_dev
2. Updated Nuxt telemetry collection info with a bit more nuance: https://www.zachleat.com/web/site-generator-review/#telemetry
The ebb and flow of JavaScript bundlers
A casual reminder that open sourcing things (even small things) is awesome, `flex-luthor` v4 now has connected separators thanks to @chriskirknielsen!
https://github.com/zachleat/flex-luthor

@zachleat/flex-luthor@4.0.2
A small wrapper library to help with responsive intrinsic-sized Flexbox layouts that wrap based on content and container width and avoiding viewport-based media queries.
@11ty/eleventy-plugin-webc@0.9.1
WebC support for Eleventy adds for Single File Web Components
@zachleat/flex-luthor@4.0.1
A small wrapper library to help with responsive intrinsic-sized Flexbox layouts that wrap based on content and container width and avoiding viewport-based media queries.
speedlify-score@3.0.0
A web component to show Lighthouse scores via Speedlify
@zachleat/resizeasaurus@2.0.0
A web component to add resizing behavior to test intrinsically sized responsive components.
no—*you* are just getting around to blogging things from 3 years ago, not me
Flex Luthor, a Little CSS Flexbox Layout Helper
https://www.zachleat.com/web/flex-luthor/
@zachleat/flex-luthor@4.0.0
A small wrapper library to help with responsive intrinsic-sized Flexbox layouts that wrap based on content and container width and avoiding viewport-based media queries.
@zachleat/flex-luthor@3.0.1
A small wrapper library to help with responsive intrinsic-sized Flexbox layouts that wrap based on content and container width and avoiding viewport-based media queries.
Had a few minutes so I forked and updated one of my favorite (but never published) Filament Group classics:
`flex-luthor` is a flexbox helper to configure layouts using a few CSS custom properties.
Source: https://github.com/zachleat/flex-luthor
Demo: https://flex-luthor.zachleat.dev/
This utility predated Flexbox `gap` but this new version uses it internally. Automatic horizontal/vertical border separators are probably its coolest feature!
@zachleat/flex-luthor@3.0.0
A small wrapper library to help with responsive intrinsic-sized Flexbox layouts that wrap based on content and container width and avoiding viewport-based media queries.
Experimenting with an `esbuild` style animated ASCII benchmark chart on the @eleventy home page 👀
(inspired by https://esbuild.github.io/)

I should probably cross-post to the blog post that resulted from the above thread!
The JavaScript Site Generator Review, 2023
(it has evolved to its final form: the blog post)
The JavaScript Site Generator Review, 2023
https://www.zachleat.com/web/site-generator-review/
Comparing Site Generator install times, node_modules weight, client JavaScript footprint, npm audits and Telemetry.
This concludes the Site Generator Review—happy to receive feedback or recommendations on aspects of these tools you’d like to see reviewed for next time!
Telemetry (anonymous data collection on usage) enabled by default (requires opt-out):
Astro
Next.js
Gatsby
Nuxt
No known Telemetry or data collection:
Eleventy
Remix
SvelteKit
Hides `npm audit` reports during installation:
Astro
Gatsby
Next (via vendoring)
Shows `npm audit` reports during installation:
Eleventy
Nuxt
Remix
SvelteKit
`npm install` time (in seconds)
(forcing a clean cache, average of 5 runs)
Notably, next.js seems to bypass `npm` by vendoring its dependencies (speedier install, without those pesky npm audits)

node_modules Weight (in MB)

Client JavaScript Baselines

It’s time again for every framework author’s favorite: The JavaScript Site Generator Review (Feb 2023 edition).
Site generators and versions (in alphabetical order):
Astro 2.0.15
Eleventy 2.0.0
Gatsby 5.7.0
Next.js 13.2.1
Nuxt 3.2.2
Remix 1.13.0
SvelteKit 1.8.3
(…uh, this is a thread 🧵⬇️)
you say jump, I say how many high severity vulnerabilities
Frameworks that offer CLI tools that generously offer to help `npm install` your dependencies for you…
(and also hide npm’s security audit reports 🫠)
@11ty/eleventy-plugin-webc@0.9.0
WebC support for Eleventy adds for Single File Web Components
@11ty/webc@0.9.0
Single File Web Components
moving forward all twitter dev drama will now be canonically referred to as (in the style of the daytime television soap opera) “your stories”
don’t forget to log on to the hell site and catch up on your stories
the above is the user experience, here’s what the developer experience looks like:

“the web is an application platform now so you should use my application framework for your web site”

alert alert this is not a drill—@hdv is on the market!
the temptation to push at least two releases of every module to npm so it doesn’t say “1 Versions” on the package page 😅
node-retrieve-globals@2.0.4
Execute a string of JavaScript using Node.js and return the global variable values and functions.
11ty/demo-eleventy-js-front-matter
Demo of free-form JavaScript in front matter to populate the Data Cascade.
@zachleat/noop@1.0.3
A minimal module to test importing in other tools.
node-retrieve-globals@2.0.3
Execute a string of JavaScript using Node.js and return the global variable values and functions.
@zachleat/noop@1.0.2
A minimal module to test importing in other tools.
@zachleat/noop@1.0.1
A minimal module to test importing in other tools.
@zachleat/noop@1.0.0
A minimal module to test importing in other tools.
zachleat/noop
A minimal module to test importing in other tools.
jesse eisenberg was pretty decent in the react documentary
(cc @nhoizey)
noodling around with a mastodon version of tweetback: https://www.zachleat.com/toots/
I’m guessing some other folks might be interested in this to self-host your content and make it searchable?
node-retrieve-globals@2.0.2
Execute a string of JavaScript using Node.js and return the global variable values and functions.
node-retrieve-globals@2.0.1
Execute a string of JavaScript using Node.js and return the global variable values and functions.
node-retrieve-globals@2.0.0
Execute a string of JavaScript using Node.js and return the global variable values and functions.
just got done explaining to my son that traffic lights are technically robots and now I’m deep in the philosophical rabbit hole of when it’s okay for robots to orchestrate our choices
I am fun at parties
node-retrieve-globals@1.0.1
Execute a string of JavaScript using Node.js and return the global variable values and functions.
node-retrieve-globals@1.0.0
Execute a string of JavaScript using Node.js and return the global variable values and functions.
zachleat/node-retrieve-globals
Execute a string of JavaScript using Node.js and return the global variable values and functions.
My kids carried out the Midwest (USA) rite of passage of going sledding on the same day they had swim lessons.
this just in—effective 30 days from today twitter will disallow the use of vowels in tweets for freeloading non-twitter blue subscribers