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

Software developer’s should be more aware of the media layer . I appreciate the author’s post about 3g /5g reliability and latency. Radio almost always retries, and with most HTTP your packets need to arrive in order.

A single REST request is only truly a single packet if the request and response are both < 1400 bytes. Any more than that and your “single” request is now multiple requests & responses . Any one of them may need a retry and they all need to arrive in order for the UI to update.

For practical experiments, try chrome dev tools in 3g mode with some packet loss and you can see even “small” optimizations improving UI responsiveness dramatically.

This is one of the most compelling reasons to make APIs and UIs as small as possible.



I agree. There's some good information in the article, but 14kb web page is a poor example. API requests would be a better example.


It’s extreme. But you can still apply to UI. Getting initial paint elements under 14k is good. Eg index.html with the css needed to draw .




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

Search: