npm install funnelql
You can then use the FunnelQL library with the file
dist/funnelql+inline-worker.js. To save bytes, you can optionally use the
.nodebug.js version without debug and Performance API functionality.
The library requires a Web Worker that can be loaded in two ways:
as a separate worker file
You can directly include the FunnelQL library in the HTML document.
<script src="/funnelql.js" async></script>
The script will automatically load
/funnelql-worker.js on the basis of the path of
To load the web worker from a custom location, set
window['funnelql-worker'] with the path to the web worker file.
<script src="/funnelql+inline-worker.js" async></script>