Title: Plugin WP-Optimize
Last modified: August 1, 2024

---

# Plugin WP-Optimize

 *  Resolved [somahierzer](https://wordpress.org/support/users/somahierzer/)
 * (@somahierzer)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-wp-optimize/)
 * Hey,
 * I need support for a problem I am facing with the Plugin WP-Optimize. When I 
   use the settings “Minimize”, the menu and the header do not load on my mobile
   website. On Desktop it is working fine.
 * Best Regards,
 * Soma Hierzer
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-wp-optimize%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [wpmansour](https://wordpress.org/support/users/wpmansour/)
 * (@wpmansour)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-wp-optimize/#post-17927833)
 * Hey Soma,
 * It sounds like the issue you’re facing might be related to the minification process
   interfering with your theme or certain scripts. Here are a few steps to troubleshoot
   and fix the problem:
    1. **Exclude Specific CSS/JS Files**: Sometimes, certain CSS or JS files don’t 
       play well with minification. You can exclude these files from minification:
    2.  - Go to `WP-Optimize -> Minify`.
        - Under the `CSS` and `JS` tabs, you’ll see options to exclude specific files.
          Add the paths of the CSS/JS files that might be causing the issue.
    3. **Caching**: Make sure to clear any caching mechanisms after making changes,
       including browser cache and any server-side or CDN caches.
 * Please give these steps a try and let me know if it resolves the issue.
 * Best Regards,
 *  Thread Starter [somahierzer](https://wordpress.org/support/users/somahierzer/)
 * (@somahierzer)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-wp-optimize/#post-17929559)
 * Hey, Yes I have read similar descriptions, but I have no idea, how to find the
   CSS or JS files that I need to exclude.
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-wp-optimize/#post-17933546)
 * Hi,
 * First you need to determine whether it’s the minification or merging.
 * Turn both merging and minfication off in the CSS and Javascrtipt tabs and start
   re-enabling the Merging and Minifcation one at a time and see if the issue reappears.
   Start with the JS, if the issue does not reappear, do the same for the CSS.
 * Let us know how you get on and we can provide further instructions.
 * [https://snipboard.io/6y1O5R.jpg](https://snipboard.io/6y1O5R.jpg)
 *  Thread Starter [somahierzer](https://wordpress.org/support/users/somahierzer/)
 * (@somahierzer)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-wp-optimize/#post-17936935)
 * Hi,
 * Thanks! The problem happens with the minification of Javascript.
 * I do not find the option of merging. Could it be that it only comes with the 
   Premium Plugin?
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-wp-optimize/#post-17937094)
 * In this screenshot, merging is selected for the JS:[https://snipboard.io/6y1O5R.jpg](https://snipboard.io/6y1O5R.jpg)
 * As your site has http2 support, you should not have merging enabled as it will
   be making your site slower. You can check this with this website: [https://tools.keycdn.com/http2-test](https://tools.keycdn.com/http2-test)
 * Here’s how to find the JS file that needs to be excluded
    - Open Developer Tools. You do that either by right-clicking and choosing Inspect
      Element, or at the top of the window go to: View >> Developer >>Developer 
      Tools
    - Find the red error message indicator on the right-hand side
    - Click it to open the Console, then click the file referenced in the error 
      notice:
    - ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdWbC4Y4QS1Agw45V3dQK1O3kE_zIWuqR1eNLS5G_AkISmXmRTqP93JhkMLZc26eAtTH7INGiseRJFSGRhOo905axnqx7ssOztrZab_CRCAF15Un2nBEucYnaEpdJDFuWUKSA5k_xADyeLcTe4D6Saf7FIt?
      key=lBvESvH2gwekRdQitRJxfA)
    - This takes you directly to the code in the file that is related to the error.
      Look for the red underline and copy part of that code:
    - Open a new browser tab and load the un-cached version of the page. You will
      need to use an incognito window
    - Open Developer Tools, then click the 3 dots on the right side and select Search
      All Files:
    - Paste the problematic code in the search box and it will locate the file in
      which that code is found:
    - It’s not possible, unfortunately, to copy the filename from this screen. So
      to do that, click on the Network tab (reload the page if necessary to pull
      in the files). Then search for the file in the list:
      Once you’ve located the
      file, right-click on the filename, select Copy, then Copy Link Address to 
      the exclusion list under Minify>> Javascript >> Exclude JavaScript from processing
 * After saving this you can visit your site again, reload the page and check that
   there are no more JavaScript errors reported in the console.
 *  Thread Starter [somahierzer](https://wordpress.org/support/users/somahierzer/)
 * (@somahierzer)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-wp-optimize/#post-17941356)
 * Thank you very much! The deactivation of the merging of Javascript has actually
   solved the problem.
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-wp-optimize/#post-17941591)
 * No problem, glad that you got to the bottom of it.

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

The topic ‘Plugin WP-Optimize’ 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/)

 * 8 replies
 * 3 participants
 * Last reply from: [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-wp-optimize/#post-17941591)
 * Status: resolved