how to stop running program when not wisible on screen

edited November 2016 in JavaScript Mode

Hi, I have a lot (more than 10) different processing programs on my web-page. All these programs are embedded in processing.js. After entering my page all programms are running simultaniously. So the execution of code is slowed down. I am looking for a mode to stop running when the programs loose focus. In processing2 there was the mode "JavaScript" available, whose Playback Settings allowed "pauseOnBlur". Does processing.js have any similiar feature?

Tagged:

Answers

Sign In or Register to comment.