[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/conv/ - Conversion Rate

CRO techniques, A/B testing & landing page optimization
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1781527799281.jpg (387.79 KB, 1024x1024, img_1781527759498_rnc9sdqw.jpg)ImgOps Exif Google Yandex

5d256 No.1750

just stumbled onto a way to use new BroadcastChannel('name') to keep multiple tabs in sync w/o hitting the server constantly. its pretty seamless for making sure things like cart updates or user sessions stay perfectly aligned across every open window. anyone else using this instead of localStorage session storage for real-time UI updates?

article: https://developer.mozilla.org/en-US/blog/exploring-the-broadcast-channel-api-for-cross-tab-communication/

5d256 No.1751

File: 1781527933555.jpg (241.21 KB, 1024x1024, img_1781527918345_ged8cptq.jpg)ImgOps Exif Google Yandex

still need a fallback for when users have the site open in a background tab thats been hibernating for hours. broadcast channel is great, but if the page was discarded by the browser, it wont catch the message. i usually pair it w/ a
storage
event listener on localStorage just to be absolutely certain the state catches up on reload.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">