Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU usage #462

Open
assembledadam opened this issue Aug 10, 2016 · 1 comment
Open

High CPU usage #462

assembledadam opened this issue Aug 10, 2016 · 1 comment

Comments

@assembledadam
Copy link

Got a dual quad core 2015 Macbook Pro, and I'm getting history.js using 12-16% of my CPU constantly (Chrome 52, MacOS El Capitan).

I've traced the problem to the call of History.onUnload = function() - this accounts for 90%+ of the CPU usage.

Specifically I think this is being called continuously - the offending line appears to be:

// For Internet Explorer
History.intervalList.push(setInterval(History.onUnload,History.options.storeInterval));

For non IE perhaps we should avoid this line?

@assembledadam
Copy link
Author

Update: looks to be the same report as #321 and a couple of others. Seems odd why nobody has addressed this in the repo yet.

assembledadam pushed a commit to candybanana/history.js that referenced this issue Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant