Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230073

How to use web workers with ionic?

$
0
0

You just need to put your web worker inside the public folder.
Now, your web worker may be loaded properly. And you just need to import it this way:

const worker = new Worker( 'myWorker.js' );

Viewing all articles
Browse latest Browse all 230073

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>