How to reduce file size of production build?

WebViewer Version: 8.2.0

Is there a way to reduce the file size of PDFNetC.gz.js.mem file in webviewer\lib\core\pdf\full it is currently 7587kb in size which is taking too much bandwith in our Vercel

We are using @pdftron/webviewer: 8.2.0 in Next.js

Hello Danish,

You can place the large worker files on a different domain. Here is a guide on that:

We also have an optimization script to reduce the overall size of the lib folder.

Best Regards,
Darian