collective-soundworks / soundworks

Creative coding framework for distributed applications based on Web technologies.
http://soundworks.dev
BSD 3-Clause "New" or "Revised" License
114 stars 7 forks source link

[template-helpers] defer visibility change #42

Closed b-ma closed 2 years ago

b-ma commented 3 years ago

When having "real" links in a page and navigating through these links, the hidden event is fired as explained in https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event, causing a concurrency that triggers a reload instead of following the link (not each time but ~1 time over 2)