Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Late-appearing elements are really annoying as well. They like appear under your mouse the moment you want to click on something.


Can second this. UI elements should not suddenly shift in place, unless interacted with or clearly communicated in advance (think a traffic light going yellow then red).


In the old days, the solution was simple - block the UI.

But nowadays - a background thread will search for the stuff that should appear in the UI, and adds that directly when it found something.

You can solve the problem by changing the mouse icon to the hourglass, blocking the UI for just enough time to not get any accidental clicks, and update it.

As side effect, every update now takes some time - so you have to minimize the number of updates.


I'm hoping that with websites having cumulative layout shift (https://web.dev/cls/) metrics considered in Google search ranking this will become less common?

(Discloseure: I work at Google, speaking only for myself)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: