jquery-runner
jquery-runner copied to clipboard
Eats a lot of resources, especially when multiple instances
I found out that it eats my CPU if there are about 10 instances or more.
Made a workaround like this:
Changed Line 87 to: Runner.prototype.updating = 20;
Changed Line 132 to: if (this.updating >= 20) {
Changed Line 133 to: this.updating = 0;
Added on Line 154: this.updating++;
This saves a lot of CPU Power.
Thank you for this wonderful jQuery Plugin!
Just ran across this searching for a way to optimize multiple instances. I tested it locally and it does seem to decrease CPU usage significantly. I typically have a page with up to 40-50 timers running.
Would you mind explaining what this is doing?