Jump to content
Search Community

Irfan Ali Qureshi

Members
  • Posts

    2
  • Joined

  • Last visited

Irfan Ali Qureshi's Achievements

0

Reputation

  1. Here, I am using the latest version from cdn and you will still notice the counter is being triggered. setTimeOut Counter.html
  2. Hi, I am using tweenmax in my reactJs project and while working on the performance optimization, I ran the following script in console which shows the number of active setTimeOut calls. window.originalSetTimeout = window.setTimeout; window.originalClearTimeout = window.clearTimeout; window.activeTimers = 0; window.setTimeout = function(func, delay) { window.activeTimers++; console.log('> set', window.activeTimers); return window.originalSetTimeout(func, delay); }; window.clearTimeout = function(timerID) { window.activeTimers--; console.log('>> clear', window.activeTimers); window.originalClearTimeout(timerID); }; If we just import tweenmax, infinitive setTimeOut calls start getting triggered. We dont even have to use the library, just importing it alone causes so much action to calls. Can you please help me look into this issue?
×
×
  • Create New...