Monday, September 7, 2026
HomeJavaScriptNet Weekly #197

Net Weekly #197


Guten Tag! Guten Tag! 👋 

Are you prepared for the closedby attribute? Will you measure components with containertiming? And do you employ CSS infinity?

Activate the Net Weekly tune and discover some solutions under. Take pleasure in!




Paweł says:

This one was really helpful to me by Apple Music whereas driving again dwelling final week. The second I heard it for the primary time I put it on loop and it was taking part in for the remainder of the journey (1hr). Actually optimistic vibe.

Do you need to share your favourite music with the Net Weekly neighborhood? Hit reply; there are 5 extra songs left within the queue.


Let’s open this challenge by two developer surveys value your time.

The State of Devs 2026

First, the State of Devs survey is open for participation. And when you have a second, you need to fill it out. I sound like a damaged report, however issues are altering. There’s plenty of uncertainty and, frankly, sometimes I am navigating a full-blown identification disaster. I am very interested in whether or not I am alone with these emotions…

A graph from the State of CSS survey showing that anchor positioning is the favorite new CSS feature.

And second, the State of CSS survey outcomes are out! 🎉 As at all times it is an awesome learn to find new options and get a sense for the way “leading edge” all people is on the market.

And to everybody who talked about me within the assets part, thanks! I am very humbled to be on this record of nice individuals within the net dev neighborhood. 🥹


In case you take pleasure in Net Weekly, share it along with your family and friends.

A fast “repost” actually helps this indie e-newsletter out. Thanks! ❤️


Net Weekly Housekeeping 

This week’s summer time bag of karma factors goes to Zerde, who began to assist Net Weekly financially. This brings the supporter depend to the superb variety of 54.

After subtracting the price of sending and internet hosting, Net Weekly now makes round $150 per 30 days. Thanks all for supporting this text! ❤️

So, for those who take pleasure in Net Weekly, give again with a small month-to-month donation on Patreon or GitHub Sponsors. It actually makes a distinction for me in these arduous occasions of AI slop and low-effort net creation.

One thing that made me smile this week 

A green button labeled "Button".

Guess what you will discover at clickclickclick.click on. I am unable to assist it; I simply love individuals who put out foolish issues on foolish domains. ❤️

Click on!

No code 

Browser Efficiency Timing APIs 

<img elementtiming="product-image" ...>  <section containertiming="product-summary">   ... </section>

Harry defined the brand new containertiming attribute, which is at the moment operating as a Chrome Origin trial. In case you’re not knee-deep into perf subjects, the put up consists of a couple of rabbit gap to leap into. For instance: Have you ever used the elementtiming attribute to get render data of picture or textual content nodes? Or, do you employ the Consumer Timing API to mark sure render/efficiency milestones?

Measure!

Promise.all however for good outdated objects 

const {   shape,   color,   mass, } = await Promise.allKeyed({   shape: getShape(),   color: getColor(),   mass: getMass(), });

The “Await dictionary of Guarantees” ECMAScript proposal moved to stage three in order that we’ll lastly be capable to await objects. Cannot wait!

Await the properties

On requirements, processes, and specs 

IMO ponyfills are just userland libraries with better marketing.

Lea makes a powerful case for the usefulness of polyfills. If you wish to be taught extra in regards to the present state of polyfills, ponyfills, and prollyfills (I hadn’t heard that one earlier than), this put up consists of tons of background data.

Fill the platform gaps

CSS Route and Navigation Matching 

/* Going from home to about? Slide left! */ @navigation (from: --home) and (to: --about) {   @view-transition {     navigation: auto;     types: slide-all-to-left;   } }

Bramus is engaged on new methods to make view transitions simpler to deal with in an MPA situation. That is in its very early phases, however take a look at this funky CSS.

Bramus is on the lookout for suggestions!

Peek into the potential future

The great bizarre net – Dustin’s web site 

A classical operating system dialog showing different programs: blog, click, globe, etc.

Properly, that is what I name one more fancy private web site. 👏

Get to know Dustin

CSS infinity 

.tippy-top-of-stacking-context {   z-index: calc(infinity) }

How may you stack on prime of a component with the best potential z-index (2147483647)? Appropriate! You employ CSS infinity to get on prime of the best stack. Adam lists some extra artistic infinity use circumstances.

Stack on prime!

Comply with the OS font dimension 

.button {   font-size: calc(16px * env(preferred-text-scale)); }

Again in Net Weekly 182, I included the brand new text-scale meta ingredient which allows websites to react to OS font dimension adjustments. I did not notice that there is extra to this matter.

Apparently, there’s additionally the preferred-text-scale CSS env variable. Josh was concerned within the spec and shares how a selected BBC downside led to this new font dimension method.

Respect the OS

Scale textual content routinely 

p {   text-fit: grow per-line-all; }

Talking of textual content scaling, apparently Chrome 150 shipped the brand new text-fit property. There are not any actual MDN docs, and the spec could be one of the best we have got if it weren’t for Krijn, who documented all of the choices with visible examples.

Scale routinely

Measure SPA navigations 

const observer = new PerformanceObserver(console.log); observer.observe({ type: "soft-navigation", buffered: true });

With Chrome 151, mushy navigations entered the mainstream. If you have not heard the time period, a mushy navigation is something that:

  • is initiated by a person motion.
  • leads to a visual URL change to the person.
  • leads to a visual paint.

So, we’re speaking a few new option to monitor and measure classical SPA navigations.

Measure the navigation

Aspect be aware: for those who’re utilizing the web-vitals library, mushy navigations at the moment are supported with v6.

Random MDN – closedby 

HTML snippet showing `closedby=any` on a `dialog` element.

From the limitless MDN data archive…

We’re not totally there but by way of browser assist, however the brand new closedby property ships in Chromium, Firefox and is already included in Safari TP, so it is about time to look into it.

Shut it with something

TIL recap – use Intl to format and localize items! 

console.log(   new Intl.NumberFormat('fr-FR', {     style: 'unit',     unit: 'kilobyte',     unitDisplay: 'long',   }).format(123456) ); // "123 456 kilooctets"

Here is a fast social gathering trick: do you know that you should utilize Intl to format numeric values with their items?

Format with type

New on the baseline 

Widely available: .something {     animation-timing-function: linear(0, 0.25 25% 75%, 1);   } Newly available: const german = new Intl.Locale("DE-de");   console.log(german.getTimeZones());   // Array [ "Europe/Berlin", "Europe/Busingen" ]

The linear() easing operate made it into Baseline extensively obtainable territory.

And since Firefox 153, all current browsers assist new data strategies like getTimeZones, getTextInfo, or getHourCycles on Intl.Locale objects.

Three beneficial tasks to take a look at 

Considered the week 

That is by far my largest concern with the “new world” we’re in. As Koshy says, it is by no means been really easy to fake with out understanding what is going on on.

[AI] makes it straightforward to simulate competence with out constructing competence.

Did you be taught one thing from this challenge? 

❤️ If that’s the case, be a part of 54 different Net Weekly supporters and provides again with a small month-to-month donation on Patreon or GitHub Sponsors.

That is all, buddies! 

Liked this e mail? Hated this e mail? I need to hear about it!

In case you suppose one thing wants enchancment or one thing sparked some pleasure, reply to this e mail as a result of I need to know extra!


And with that, handle your self – mentally, bodily, and emotionally.

I am going to see you subsequent week! 👋

Be a part of 6.5k+ builders and

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments