ppk,
@ppk@front-end.social avatar

@michelle @sarajw The visibilitychange event is our friend.

However, that event only fires if every single pixel of the page is covered or otherwise invisible.

So the use case where the tab is not entirely hidden is a lot more difficult. In the end it's likely going to be a timeout: if the user hasn't interacted for X time the monetization stream is stopped.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • InstantRegret
  • thenastyranch
  • magazineikmin
  • khanakhh
  • rosin
  • Youngstown
  • slotface
  • mdbf
  • cisconetworking
  • kavyap
  • cubers
  • everett
  • ngwrru68w68
  • JUstTest
  • Durango
  • osvaldo12
  • tacticalgear
  • modclub
  • normalnudes
  • Leos
  • ethstaker
  • GTA5RPClips
  • tester
  • anitta
  • provamag3
  • megavids
  • lostlight
  • All magazines