News for hackers. Stuff that matters.
Re:Don't attach tooltips to document.body by weird-eye-issue on Saturday August 21, 2021 @03:10AM (#28254932)
I don't consider this a bug, it's really a very minor performance issue. 80ms isn't going to be noticed by users
Re:Don't attach tooltips to document.body by boredtofears on Saturday August 21, 2021 @03:58AM (#28255101)
this is exactly why SPA's get a bad rep: developers think an 80ms delay on a minor render operation is acceptable
Re:Don't attach tooltips to document.body by jbverschoor on Saturday August 21, 2021 @04:34AM (#28255262)
The same could be said for php, c, or even basic.

They get a bad rep, but it's perfectly possible to create something secure, stable, maintainable and performant

Re:Don't attach tooltips to document.body by weird-eye-issue on Saturday August 21, 2021 @04:45AM (#28255324)
You might be surprised just how fast 80ms really is. Again I'm not saying this shouldn't be addressed if it's causing noticeable issues but labeling it as a bug just seems strange to me (but that label wouldn't change the priority for me by itself)
Re:Don't attach tooltips to document.body by jcelerier on Saturday August 21, 2021 @05:16AM (#28255468)
> You might be surprised just how fast 80ms really is.

it's, like, five frames on a slow monitor. missing a single frame is already bothersome and worthy of bug reports.

Re:Don't attach tooltips to document.body by weird-eye-issue on Saturday August 21, 2021 @05:22AM (#28255491)
It's noticeable if something is moving because that won't look smooth. But a 80ms delay will be very hard to notice. An average reaction time is around 300ms.

With all the downvotes I'm getting I might be missing something though :P

Re:Don't attach tooltips to document.body by eloisius on Saturday August 21, 2021 @06:00AM (#28255676)
You're not wrong about 80ms being a "small" amount of time, but you're saying that in absolute terms. Native UI tool kits for decades now have targeted <100ms latency[1]. That includes processing user input and rendering. 80ms for part of a render operation spends almost your whole budget.

The sum total of ignoring this kind of performance footgun is why apps like Slack feel so crappy. You can't get into the flow because it's a pile of high-latency, asynchronous interactions. I haven't used Photoshop in a long time, but back in the early 2000s even on my Compaq with 32MB of RAM it was snappy. I can't imagine using something as complex as Photoshop built as an Electron SPA and keeping my sanity.

[1] https://stackoverflow.com/questions/536300/what-is-the-short...

Re:Don't attach tooltips to document.body by jcelerier on Saturday August 21, 2021 @06:07AM (#28255705)
> An average reaction time is around 300ms.

just because human's reactions are slow, does not mean that humans do not notice. In music it's routine to have people complain when latency goes above 15 ms and it was recently shown that humans could notice in some physiological way down to half a millisecond of latency.

Re:Don't attach tooltips to document.body by ponyous on Saturday August 21, 2021 @07:06AM (#28255962)
Do you have a source for the half a millisecond part?

Just curious

Re:Don't attach tooltips to document.body by jcelerier on Saturday August 21, 2021 @07:09AM (#28255981)
Re:Don't attach tooltips to document.body by fendy3002 on Saturday August 21, 2021 @03:27AM (#28254995)
It's very minor, but when it happen many times, it'll be noticable. It's proven because author start the investigation.

It won't be a problem if the tooltip has delayed appearance by 80ms, but it holds the process. So the site will have a 80ms stutter everytime a tooltip appear.

Re:Don't attach tooltips to document.body by weird-eye-issue on Saturday August 21, 2021 @03:47AM (#28255053)
Which generally won't be noticed but it depends on the site. I'm not saying it isn't an issue just that I wouldn't call it a bug. Certainly not something so bad that it would turn you away from web dev. I mean we even have the tooling to track it down fairly easily
Re:Don't attach tooltips to document.body by Jenk on Saturday August 21, 2021 @04:19AM (#28255196)
It's a bug. I don't care for your semantic separation of issue/bug and neither should you. Pointless distinction for the sake of ego protection. It is unwanted behaviour, therefore a bug.
Re:Don't attach tooltips to document.body by weird-eye-issue on Saturday August 21, 2021 @04:47AM (#28255330)
Alright I guess we will just have to agree to disagree. For me, if an action takes slightly longer than it could take but isn't significantly impacting UX then I don't personally think of that as a bug. Maybe I just don't understand the impact this particular issue had
Re:Don't attach tooltips to document.body by vanderZwan on Saturday August 21, 2021 @04:13AM (#28255168)
"Minor" performance issues add up quickly when there are more of them. And with this attitude there will be more of them
Re:Don't attach tooltips to document.body by weird-eye-issue on Saturday August 21, 2021 @04:41AM (#28255301)
I never said it shouldn't be addressed if it is impacting the user experience