history.js icon indicating copy to clipboard operation
history.js copied to clipboard

History.onUnload is being called many many times on android phone

Open thehappycoder opened this issue 11 years ago • 3 comments

Found this in the source: // For Internet Explorer History.intervalList.push(setInterval(History.onUnload,History.options.storeInterval));

And this phone is slow one. That may explain everything.

According to chrome devtools, it's been called a lot of times. https://gist.github.com/thehappycoder/a089562b13e028766e82/raw/53f0425c5f4756c7f5c7662711c4e4d3c6d3ba56/TimelineRawData-20140130T152139.json

thehappycoder avatar Jan 30 '14 13:01 thehappycoder

Hey @thehappycoder , I stumbled into same line of code when debugging performance issues... any news on that?

Strajk avatar Nov 19 '14 12:11 Strajk

@thehappycoder already found a discussion about that here https://github.com/browserstate/history.js/issues/321 and https://github.com/browserstate/history.js/issues/376

Strajk avatar Nov 19 '14 12:11 Strajk

@Strajk Thank you. It's very useful.

thehappycoder avatar Nov 19 '14 13:11 thehappycoder