The author creatively repurposed unclosed browser tabs to run Pong, inspired by a friend’s Flappy Bird running in a favicon. They scripted AppleScript to create a grid of tabs and optimized updating favicons. Web workers were used to overcome tab throttling while keeping tabs synced. Communication between tabs was established using broadcast channels. The author’s next challenge was creating graphics across tabs, starting with moving a rectangle. To enhance performance, the author optimized favicon updates with minimal data transmission. The author plans to develop games like Snake using this technology. This innovative approach utilized browser resources efficiently despite some initial performance issues.
https://eieio.games/blog/running-pong-in-240-browser-tabs/