Using Pivot with Web Worker

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 the webWorker property:

webix.ui({
    view:"pivot",
    webWorker:"../../codebase/pivot.worker.js"
});

Related sample:  Using Web Worker (non-blockin UI)

After that you will be able to apply the related API.

Web Worker API

There are two web worker-specific events you use:

Frequently Asked Questions

An error occurs when I try to use the link to web worker from CDN

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"
});

An error "An object could not be cloned" occurs

This error may occur if besides static parameters config also contains JS functions which can't be passed to worker.

Back to top