Open viseth opened 4 years ago
We've been experiencing a very similar issue. We have about 30 charts on the page which locks up the UI quite a bit.
Maintainers, would you welcome a PR to allow the user to override the windowFocusHandler
?I'd expect the workaround would be to override ChartInternal.prototype.windowFocusHandler
.
I am currently detaching the window focus handler, because switching tabs causes the entire page to go blank for ~10 seconds.
Any resolution on this?
It has been a long time since I've looked at this. @jteppinette, did you have anything to share with @chadnaylor to detach the listener? I'm not optimistic we'd be able to get a PR through. 😓
Hi, Thanks for this amazing lib !
The console log of Chrome is cluttered with verbose message of this type: [Violation] 'focus' handler took 519ms c3.js:2311 Which makes the navigation on the page very bad. The clicks responsiveness is totally bad at some point.
Here's a little JSFiddle 👍 https://jsfiddle.net/Viseth7/ad19b7s6/8/
=> message log verbose appear and the navigation experience goes bad.
All messages point to the same line of code " this.windowFocusHandler = function ()" :
` ChartInternal.prototype.bindWindowFocus = function () { var _this = this;
}; `
Please below is the console log screeshot.
I don't know whether this has to do with uikit-3.2.7 that I used in this project.
Does anyone else experience the same ? Any hints and idea ?