AgregoreWeb / agregore-browser

A minimal browser for the distributed web (Desktop version)
https://www.youtube.com/watch?v=TnYKvOQB0ts&list=PL7sG5SCUNyeYx8wnfMOUpsh7rM_g0w_cu&index=14
GNU Affero General Public License v3.0
715 stars 66 forks source link

Typing in URL bar causes website reflow flashing #244

Open canadaduane opened 11 months ago

canadaduane commented 11 months ago

When visiting a site such as https://code.thumby.us/, if I type something into the URL bar (e.g. "t") the website flashes for a moment as the autosuggest options push the website content down. It's particularly visible in complex rendering such as the "code blocks" area of the example site mentioned above:

image

It looks like there are at least 2 "frames" in the reflow flash, such that the 1st frame renders the website's new location with code blocks not quite fully rendered, then the 2nd frame renders with the code blocks fully rendered.

RangerMauve commented 10 months ago

Yeah sadly that stems from the fact the web contents are a seperate "browserview" that gets rendered over the ui for the navbox. We'd need to split it to habe the search box in its own browserview, calculate it's default size and have it expand outside that but keep the main contents the same time and rendering below.

This would be a pretty big chunk of work so I'm not sure when I could do it. :x