From the Knowledgebase

Using Caching or Minifying Plugins

Using WP Super Cache, W3 Total Cache, WP Rocket, Autoptimize, or other plugins to minify and/or cache the scripts running on your site has been known to create issues with the plugin's function. Some themes also provided caching / minifying of JavaScript. The plugin scripts are already minified so you will not be losing any efficiency or load speed by excluding them from these tools.

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/all-pdfemb-basic.min.js,
  • /wp-content/plugins/pdf-embedder/js/pdfjs/pdf.min.js, and
  • /wp-content/plugins/pdf-embedder/js/pdfjs/pdf.worker.min.js

PDF Embedder Premium version:

  • /wp-content/plugins/pdfembedder-premium/js/all-pdfemb-premium.min.js,
  • /wp-content/plugins/pdfembedder-premium/js/pdfjs/pdf.min.js, and
  • /wp-content/plugins/pdfembedder-premium/js/pdfjs/pdf.worker.min.js

PDF Embedder Secure version:

  • /wp-content/plugins/pdfembedder-premium-secure/js/all-pdfemb-premium.min.js,
  • /wp-content/plugins/pdfembedder-premium-secure/js/pdfjs/pdf.min.js, and
  • /wp-content/plugins/pdfembedder-premium-secure/js/pdfjs/pdf.worker.min.js

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.

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.

Top