Title: Error worker failed
Last modified: May 14, 2024

---

# Error worker failed

 *  Resolved [Tilo](https://wordpress.org/support/users/netsales/)
 * (@netsales)
 * [2 years ago](https://wordpress.org/support/topic/error-worker-failed-2/)
 * Hello,
 * I use the DIVI Theme with WP-Optimize and PDF-Embedder PlugIn.
 * The PDF viewer brings the error message
   “Setting up fake worker failed: “Cannot
   load script at: [https://kuhstall-kleinwalsertal.at/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js.pagespeed.ce.JWXIrGgm2e.worker.js&#8221](https://kuhstall-kleinwalsertal.at/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js.pagespeed.ce.JWXIrGgm2e.worker.js&#8221);.
 * If i deactivated the JS minify it will be all fine.
   Also if I enable and exclude
   JS from prosessing/wp-content/plugins/pdf-embedder/assets/js/pdfemb.min.js/wp-
   content/plugins/pdf-embedder/assets/js/pdfjs/pdf.js/wp-content/plugins/pdf-embedder/
   assets/js/pdfjs/pdf.min.js/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.
   worker.js/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.worker.min.jswill
   not work.
 * What can I do?
 * Thanks…

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [2 years ago](https://wordpress.org/support/topic/error-worker-failed-2/#post-17754570)
 * By default, DIVI minimises. Can you ensure that you have turned off the minification
   in DIVI is turned off if you are using the minfication in WPO
 *  Thread Starter [Tilo](https://wordpress.org/support/users/netsales/)
 * (@netsales)
 * [2 years ago](https://wordpress.org/support/topic/error-worker-failed-2/#post-17755717)
 * Hello,
   I have deactivated all Divi Performance Settings, [looks like](https://www.elegantthemes.com/blog/divi-resources/divi-speed-optimization#divis-built-in-speed-and-performance-optimization-features)
 * And enabled the WP-Optimize JS Minimize. That brings the message “Setting up 
   fake worker failed: “Cannot load script at: [https://kuhstall-kleinwalsertal.at/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js.pagespeed.ce.JWXIrGgm2e.worker.js&#8221](https://kuhstall-kleinwalsertal.at/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js.pagespeed.ce.JWXIrGgm2e.worker.js&#8221);.”
   at [https://kuhstall-kleinwalsertal.at/getraenke-und-speisekarte/](https://kuhstall-kleinwalsertal.at/getraenke-und-speisekarte/)
 * I am grateful for every solution…
 *  [wpmansour](https://wordpress.org/support/users/wpmansour/)
 * (@wpmansour)
 * [2 years ago](https://wordpress.org/support/topic/error-worker-failed-2/#post-17756460)
 * Hello Tilo,
 * It seems that the issue you’re facing with the PDF Embedder plugin when minification
   is active in WP-Optimize could be related to the JavaScript files necessary for
   the PDF viewer being incorrectly processed by the minification feature.
 * As you’ve already tried disabling the minification for specific JavaScript files
   without success, I recommend that you add an exclusion for the specific script
   URL that’s causing the issue in the WP-Optimize minification settings. Here’s
   how you can do it:
    1. Go to your WP-Optimize settings in the WordPress admin panel.
    2. Navigate to the **Minify** tab.
    3. In the **Exclude scripts** section, add the full URL of the script causing the
       error: 
       `/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js`
 * This should help WP-Optimize to ignore this script during the minification process,
   potentially resolving the error you’re encountering. After making this change,
   clear your cache and test the functionality again.
 * If the issue persists, please don’t hesitate to reach back out for further assistance.
    -  This reply was modified 2 years ago by [wpmansour](https://wordpress.org/support/users/wpmansour/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error worker failed’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [wpmansour](https://wordpress.org/support/users/wpmansour/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/error-worker-failed-2/#post-17756460)
 * Status: resolved