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:
Free version paths:
- /wp-content/plugins/pdf-embedder/js/pdfjs/pdf-4.6.2.min.js, and
Premium version paths:
Secure version paths:
- /wp-content/plugins/PDFEmbedder-premium-secure/js/pdfjs/pdf-4.4.5.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.