News for hackers. Stuff that matters.
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.
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.
Re:XUL Layout has been removed from Firefox by nicoburns on Monday April 03, 2023 @08:42AM (#35422521)
It might be nice to have a mode where you opt into having the slow-path code ignored (/it's behaviour modified) in case you use it accidentally.
Re:XUL Layout has been removed from Firefox by cxr on Tuesday April 04, 2023 @08:12AM (#35438334)
That's altogether different.