Try excluding the specific JavaScript file related to the PDF-embed plugin from being minified. To do this, go to your WP Admin Panel, navigate to WP-Optimize -> Minify -> JavaScript. There, you can add the path for the PDF-embed plugin’s JavaScript file to the “Exclude JavaScript from processing” field. This way, the file won’t be minified and might solve the problem.
Hi, yes I have done this already. I thought because it is a well-known popular plugin probably it makes sense to include in the default exclusions that WPOptimize provide.
Hi,
All the excluded plugins are listed under “Known incompatible files”
Which files did you need to exclude? I can then suggest that we add them to the list.
Hi, I have excluded the following files:
wp-content/plugins/pdf-embed/build/view.js
wp-content/plugins/pdf-embed/build/index.js
I am not 100% if this are all files, but at least the plugin is working both in backend and frontend. I still have console errors in developer tools, but not sure if this is about this plugin or because of other issues.