Ports are asynchronous, and a great deal of old code is not. Add a few bytes of shared memory and a worker can ask a question down a port and stop dead on that line until the answer is written, even when the answer is a person pressing a button. Shared memory needs a cross-origin isolated page, so this one has a room of its own.