kiwix-js icon indicating copy to clipboard operation
kiwix-js copied to clipboard

Reduce size of replayWorker by removing wombat and wombat workers

Open Jaifroid opened this issue 1 year ago • 0 comments
trafficstars

Following https://github.com/openzim/warc2zim/issues/143, it might be better to include our own copy of wombat and wombat workers as a dependency in this Repo (and downstream in the PWA), rather than relying on the version embedded in sw.js / a.k.a. replayWorker.js. At build time, terser complains that it had to deoptimize the style of replayWorker because it is larger than 500KB. It seems wasteful that it includes an entire copy of wombat (minified) inside it.

Jaifroid avatar Jan 02 '24 10:01 Jaifroid