Email or username:

Password:

Forgot your password?
170 posts total
Bramus

Looking for a site to use in my perfnow.nl/ talk. What I need is a site with:

* A fair number of third-party scripts
* An owner willing to let me experiment on a dev server to see the relative impact of perf improvements
* An owner willing to either help validate that third-party scripts are still work or willing to give me access so I can check myself
* An owner that will let me publish the results of my tests and talk about them at the conference

Jason Grigsby

The site owner would get the following out of the deal:

* Free performance audit with an emphasis on how to speed up third-party scripts
* If the experiments are successful, they can deploy them and speed up their site
* Publicity at the conference and on our blog
* Answers about their site performance and what they can do to improve it (beyond just third-party scripts)

Does anyone have any suggestions on good candidate sites?

The site owner would get the following out of the deal:

* Free performance audit with an emphasis on how to speed up third-party scripts
* If the experiments are successful, they can deploy them and speed up their site
* Publicity at the conference and on our blog
* Answers about their site performance and what they can do to improve it (beyond just third-party scripts)

Bramus

Firefox released the first prototype of #CSS Masonry back in 2020, as an extension to Grid layout. Now Safari TP has it as well, while Chrome is working on an alternate proposal.

I've been enjoying the discussions, and the way both proposals have improved because of the debate.

But what's the current status, what's next, and what's at stake?

oddbird.net/2024/10/01/grid-ma

Mia

@geoff beat me to the publish button today, but I guess we're all watching the same discussions. 😅

His post on @csstricks is excellent. If you're interested in more, check that one out as well:

css-tricks.com/piecing-togethe

Bramus

“Added support for cross-document view-transitions.” 🤩

Add the following opt-in to your code to get started:

```
@view-transition {
navigation: auto;
}
```

Full docs: developer.chrome.com/docs/web-
botsin.space/@intenttoship/113

Bramus

If you’re trying out my view-transitions.netlify.app demos, not all of them work in Safari Technology Preview:

1. Most of my demos require the Navigation API to customize the VT based on where you came from. This API is only available behind a flag in STP. The demos now show a warning if support for something (VT Types, Navigation API, etc) is missing.

2. There seems to be a bug causing the page to become unresponsive after using the UA back/forward buttons. A bug was filed: bugs.webkit.org/show_bug.cgi?i

If you’re trying out my view-transitions.netlify.app demos, not all of them work in Safari Technology Preview:

1. Most of my demos require the Navigation API to customize the VT based on where you came from. This API is only available behind a flag in STP. The demos now show a warning if support for something (VT Types, Navigation API, etc) is missing.

Bramus

The new Web Weekly Newsletter is out and it's been very busy in the browser world.🥂

This time:

✅ A new HTTP method — QUERY
✅ Chromium-only: transitioning from and to `auto`
✅ A peek into the CSS future: more powerful `attr()`, `sibling-count()` and `random()`
✅ Simple cross-origin requests to avoid OPTIONS requests
➕ New tools & more platform updates.

stefanjudis.com/blog/web-weekl

The new Web Weekly Newsletter is out and it's been very busy in the browser world.🥂

This time:

✅ A new HTTP method — QUERY
✅ Chromium-only: transitioning from and to `auto`
✅ A peek into the CSS future: more powerful `attr()`, `sibling-count()` and `random()`
✅ Simple cross-origin requests to avoid OPTIONS requests
➕ New tools & more platform updates.

Web Weekly — Your friendly web dev newsletter.
Bramus

✨ New post: Top picks — 2024 September

Classic end of the month article with a list of my favourite web dev resources I found in the past month. Also, a solid music recommendation this month. Enjoy!

pawelgrzybek.com/top-picks-202

Bramus

📝 Solved by CSS Scroll-Driven Animations: hide a header when scrolling down, show it again only when scrolling up again.

By adding a long transition-delay to a CSS property under certain conditions (which you can do using a Style Query), you can persist its value.

🔗 brm.us/scroll-driven-header

Demo by @fcalderan.

Paul Shryock

@bramus @fcalderan I find this to be an anti-pattern for usability. Often times when I'm reading a site that uses this, I feel like I have to fight with the site and produce a scroll pattern "just right" so that I can again access the site header. I wish it would either be sticky or not.

Fabrizio Calderan

@bramus I think I've solved that issue you noticed: I set an higher transition delay for the scroll-delayed property so it's longer just a bit more than the transition duration of the header (probably I updated the demo after your article).

Anyway I commented all the CSS code and now it works fine for what I tested so far. 🙂

Bramus

Don't sleep on `AbortController`: kettanaito.com/blog/dont-sleep. Very solid post about the versatile ways you can use `AbortController` in JavaScript.

Bramus

zsh: I never understood why the default for going back through the history is to keep duplicates. I finally looked for a way to fix that: superuser.com/questions/273047

Nikita

@rauschma this is a nice feature to pair with context. Sometimes I don't only want to know "What was that NPM script?", but also "What do I usually run before and after it?"

HSMW supports it: github.com/zdharma-continuum/h

Bramus

📝 The CSS Podcast 089: View Transitions

Last week I joined my colleagues @argyleink and @Una on the #CSSPodcast to talk about View Transitions.

bram.us/2024/09/26/the-css-pod

Bramus

📝 Observing Style Changes (2024.09.25 @ devs​.gent)

Today I gave a talk at the September 2024 devs​.gent meetup on how to observe and respond to Computed Style Changes.

Slides + write-up: bram.us/2024/09/25/observing-s

Bramus

So very, very excited by this! Speculation Rules enabled by default on all Cloudflare free plans!!!:

blog.cloudflare.com/introducin

It’s a very conservative setting for now (prefetch and conservative eagerness). And also will reject at Cloudflare’s edge if not in CDN’s cache. So pretty safe as only cached resources.

But still a great thing to enable this by default for so many sites!!!

#webperf

Chris

@tunetheweb Very cool! Is there enough data around yet, e.g. in CrUX, to say what kind of real-world benefits people are seeing with speculation rules enabled?

I guess it's a bit tricky to measure on a big scale given the apples/oranges nature of comparing one set of rules to another.

Bramus

A #CSS-only version of minesweeper for Chrome (but made with sharks 🦈).

codepen.io/fcalderan/full/dyxP

You can arrange the sharks as you prefer, the other cells will update their numbers automa(g)ically.

Bramus

Feature detecting Scroll-Driven Animations with `@supports`: you want to check for `animation-range` too.

The problem is that a check for simply `animation-timeline: scroll()` does not exclude Firefox Nightly, which only has a partial SDA implementation.

Details: bram.us/2024/09/24/feature-det

Promotional screenshot of the code to use. It‘s detailed in the post.
Bramus

Something to add to your CSS reset from now on:

```
:root {
interpolate-size: allow-keywords;
}
```

It enables things like transitions from `height: 0` to `height: auto`.

developer.chrome.com/docs/css-

Show previous comments
Bramus

A common piece of feedback I receive on this one is “it’s Chrome-only, so I won’t use it”.

Here’s the kicker: that doesn’t really matter here, as it’s a nice #ProgressiveEnhancement: Browsers without support get the status quo. Browsers with support get the nice transition.

At worst you make the experience better in browsers with support.

developer.chrome.com/docs/css-

#CSS #EmbraceThePlatform

Anil

@bramus I've been using the display:grid trick: terminal.space/tech/adding-a-s

Once this proposal gets broad compatibility, it would be a nice addition.

Bramus

a customized `<select>` with:

- transitions
- anchor() with flipping
- custom content in the `<selectedoption>`
- spring easings
- scrollable picker
- sticky optgroup
- custom icons
- light/dark

nerdy.dev/custom-select-with-t

Bramus

When doing a performance trace with Chrome DevTools in Chrome Canary, it now shows you additional info for animations:

1. The animation name
2. The associated DOM node
3. Whether the animation could be composited or not and specifically why that is the case

This information was always there under the hood, but DevTools never surfaced it. Before you had to go through Chrome Histograms – or do a proper trace – in order to get this info.

Now, it’s just there. Very exciting 🤩

When doing a performance trace with Chrome DevTools in Chrome Canary, it now shows you additional info for animations:

1. The animation name
2. The associated DOM node
3. Whether the animation could be composited or not and specifically why that is the case

This information was always there under the hood, but DevTools never surfaced it. Before you had to go through Chrome Histograms – or do a proper trace – in order to get this info.

Screenshot of the feature
Go Up