PDFNetCWasm.br.wasm is taking 2 sec time to load

Product: @pdftron/webviewer

Product Version:^12.0.0

PDFNetCWasm.br.wasm is taking 2 sec time to load. is there any way to reduce it.

1 Like

Hello Lokesh,

Thank you for contacting WebViewer Forums.

PDFNetCWasm.br.wasm is part of the PDF worker files used when loading a document. In this case, it may be beneficial for you to preload the worker files:

 WebViewer(
  {
    path: '/webviewer/lib',
    preloadWorker: 'pdf',

More information can be found here: https://docs.apryse.com/web/guides/preload-worker-files

Regards,
Luke

1 Like