Hacker News new | ask | show | jobs
by sebdufbeau 1224 days ago
Quick look at the network tab shows two network requests, they are launched in parallel and take 250ms on my end.

The stunning part is one of these is to get a string of text that is displayed in a banner that is only visible if you scroll in the menu (like, at the very bottom). You could easily defer this call to happen once the menu is open and have 0 impact on the UX.

The other call, I have no idea what it does, but is launched both when you open and close the menu.

1 comments

It’s likely a tracking event. I work for an e-commerce company and tracking menu open/close is a big metric.
But why would these be network calls that block the UI?
Analytics calls don't generally block the UI. Must be the call the fetch the string. Or incompetence.
It has to track what the user does. Logging what they did previously is slightly more complicated. I imagine using the resources to do something "useful" with the data has priority.
But the call doesn't have to "block" - the UI could proceed without waiting for the result of the call.
Prevent the user from blocking the tracking?
Are such metrics even meaningful? It sounds like metrics-for-the-metrics-god, useless unactionable information.
The problem is you often don’t know what metrics are meaningful until after the fact.

Like, if new order starts drop by 4% while traffic remains constant, what happened? If that happens, you might want to see if people are using the menu more because something got harder to find on the page.

I doubt anyone is looking purely at menu opens as a metric, unless maybe trying to reduce it. But for ongoing funnel and ad hoc investigations it could be useful. So you collect it.

The obvious answer is sampling rather than collecting for every user, but then you get into complicated statistics about required sample sizes if you want to correlate multiple actions across tech and demographics. Again, easier to just collect it all.

Do many oversized tests but carefully avoid testing the test themselves because why would you? Would you test the test of the test too? etc? Someone might one day conclude the tests cost more than they are worth but it wouldn't be the ones hired to inflict them.