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.jsversion without debug and Performance API functionality.
The library requires a Web Worker that can be loaded in two ways:
You can directly include the FunnelQL library in the HTML document.
<script src="/funnelql.js" async></script>
The script will automatically load
/funnelql-worker.json 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>