Hi, thanks, a codepen wont replicate this issue because as I said, it is running in a node.js script, but the code is:
var gsap = require('gsap');
TweenMax.ticker.fps(24);
TweenMax.lagSmoothing(0);
var timeline = new TimelineMax({
//repeat: -1
onStart: () => {
console.log('timeline started');
}
});
timeline.add(() => { console.log ('test');}, 10 );
timeline.add(() => { console.log ('test');}, 20 );
timeline.add(() => { console.log ('test');}, 30 );
timeline.add(() => { console.log ('test');}, 40 );
It runs fine until the CPU gets under stress and then TweenMax seems to run into that issue where it is looking for a visibilityState on a _doc that doesnt exist.