Cover Image

Broadcast Channel

Introduction Recently, I came across a captivating animation showing two browser windows interacting as they moved across the screen. This popular gif sparked widespread curiosity and admiration. Initially, like many others, I was baffled about how such an effect was achieved. My first thought was the use of localStorage, but that approach seemed inefficient due to its reliance on frequent memory polling. Intrigued, I delved deeper into possible solutions and discovered the Broadcast Channels browser API....

December 2, 2023 · 3 min · 456 words · Daniel Legt