Week 5 — 6 / 38

When is Synchronous Too Slow: HTTP

Network tab showing Google.com taking > 300ms to load

As we saw last week, sending an HTTP request and getting a response is almost always too slow.

Being single-threaded means that a function like sleep() would pause all execution, and any javascript in the UI would not respond to user input until the sleep was over.