Re: [whatwg/dom] Proposal: add `computed` attribute for great performance! (Issue #1318)

 

> I feel like this could be lazy or helped via CSS similar way will-change helps but using will-compute or similar so that hints are obvious and could be optimized on the right side of affairs? 🤔

`will-compute` seems better, but how to specify the pre-store computed value?

```css
will-compute: width height scrollTop;
```

It looks weird.

Or use keywords

```css
will-compute: rect scroll;
```

`rect` will pre-store `getBoundingClientRect`, `scroll` will pre-store `scrollTop`.

There are many more computed values ​​that need to be listed.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1318#issuecomment-2413048307
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1318/2413048307@github.com>

Received on Tuesday, 15 October 2024 06:56:52 UTC