You can enhance Pivot performance by using a web worker. It will allow processing data operations in the background without blocking Pivot UI work in the browser.
The web worker script is provided in the Pivot package. To use it in an application with Pivot, you should set the path to the web worker script with the help of the webWorker property:
webix.ui({
view:"pivot",
webWorker:"../../codebase/pivot.worker.js"
});
Related sample: Using Web Worker (non-blocking UI)
After that you will be able to apply the related API.
There are two web worker-specific events you use:
Web worker can't be used from CDN. Its script file should be kept locally at the same server where a pivot HTML page is located.
webix.ui({
view:"pivot",
webWorker:"../../codebase/pivot.worker.js"
});
This error may occur if besides static parameters config also contains JS functions which can't be passed to worker.
Back to top