Re:XUL Layout has been removed from Firefox
by kitsunesoba on Sunday April 02, 2023 @09:16AM
(#35410187)
I can’t point to any examples, but it’s hard to imagine that a page being able to tell the browser for example, “hey, the only layout methods used in this page are flexbox and grid” wouldn’t enable code paths with far less guesswork, caveats, etc — the ruleset in that situation is so much more simple.
[ Parent
| on HN ]
Re:XUL Layout has been removed from Firefox
by CJefferson on Sunday April 02, 2023 @11:30PM
(#35418225)
Browsers already do quite a bit of this -- for example one easy way to hurt performance is to have events that trigger on scrolling ( https://developer.chrome.com/docs/devtools/rendering/perform... ). However, the current way to fix this is "don't do that". I'm not sure it would be faster for a page to announce it won't do things in advance, than the page just not do them, and then the existing fast paths get used.