Chrome [Violation] 'Load' Handler Took 808Ms
I Worked with Openlayer3. Now I Got This Kind of Warning: Console: [Violation] 'Load' Handler Took 308Ms Ol-Debug. Js. Xhtml? Ln=Js:6967 [Violation] 'Load'...
I worked with openlayer3. Now I got this kind of warning: Console:
[Violation] 'load' handler took 308ms ol-debug.js.xhtml?ln=js:6967
[Violation] 'load' handler took 808ms
ol.events.bindListener_ = function(listenerObj) {
var boundListener = function(evt) { // <- Zeile 6967
var listener = listenerObj.listener;
var bindTo = listenerObj.bindTo || listenerObj.target;
if (listenerObj.callOnce) {
ol.events.unlistenByKey(listenerObj);
}
return listener.call(bindTo, evt);
};
listenerObj.boundListener = boundListener;
return boundListener;
};
Is it maybe a bug on Google Chrome?
Thanks
1 Answer
The message [Violation] 'load' handler took x ms seems more like a warning that your code took a long time to run, than anything else. Perhaps you should try to move the code execution out of the load handler, and into something else (a button click?).