Javascript jerky mouse event rendering on canvas, but smooth when web development tool is on

Dear colleagues
Rendering of a complex JS IO with mouse events (drag) on canvas is jerky when running on Firefox but, funny, it is fast and smooth when the web developer tools is on.

Many thanks for y kind tip!