This error often presents as PDFs failing to load, appearing as a link, or get stuck on loading. To rectify this error, you will need to exclude the following URIs for the plugin scripts from any caching and/or minifying tools:
PDF Embedder version (free):
- /wp-content/plugins/pdf-embedder/js/pdfjs/pdf.min.js, and
PDF Embedder Premium version:
- /wp-content/plugins/PDFEmbedder-premium/js/pdfjs/pdf.min.js, and
PDF Embedder Secure version:
- /wp-content/plugins/PDFEmbedder-premium-secure/js/pdfjs/pdf.min.js, and
Note: all caching and minifying plugins differ as to where exclusions can be added. Please refer to the caching / minifying plugin's documentations for specific instructions on where and how to add these script paths as these exclusions maybe located in "hidden" Advanced settings options. The scripts should be excluded from aggregate / inline caching as well as general JS caching.
Be sure to flush any caches including ones specifically for JS after you exclude the scripts so that they can be loaded by the site again and the embed viewer should be displayed correctly once this has been done.