jquery-runner icon indicating copy to clipboard operation
jquery-runner copied to clipboard

Eats a lot of resources, especially when multiple instances

Open Furerito opened this issue 6 years ago • 1 comments

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!

Furerito avatar Aug 28 '18 12:08 Furerito

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?

bholdman avatar Apr 24 '20 17:04 bholdman