Osano and Web Workers

  • Updated

The Osano Consent Manager Script utilizes "Web Workers."

Web Workers are a simple means for web content to run scripts in background threads. The worker thread can perform tasks without interfering with the user interface. 

Web workers allow for the off-loading of classification of async scripts, which can potentially cut down processing time though not guaranteed. 

 

Web Workers and Blobs

Web Workers are used for running scripts in a background thread separate from the main execution thread of a web application. This allows for performance-intensive tasks to be handled in the background, improving the responsiveness and performance of the web page - Osano uses web workers for classification activities.

These web workers may generate blobs based on how data is sent back and forth between the worker and the main thread. Data transfer is done using the postMessage() method, which can transfer data in various forms, including Blobs. Certain content (like dynamic scripting) can create these blobs. For Osano each script/chunk is processed by the Web Worker, turned into a Blob, and sent back to the main thread sequentially which can create a vicious cycle of script/blob/script/blob. Depending on how your main site works, it is possible to experience blob creation during this process.

To mitigate blobs, optimize your classification rules to utilize Path Matching. You can find out more about that in the Rule Creation documentation.