• Resolved Philippe

    (@wp207)


    Hi, Can you tell me why /wp-includes/js/jquery/jquery.js is minified (in page speed insights results and decreasing loading speed) whereas I put this link in the settings to be not minified ? Thanks. Great day.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • wpmansour

    (@wpmansour)

    To ensure /wp-includes/js/jquery/jquery.js is excluded from minification in WP-Optimize, follow these steps:

    1. Go to WP-Optimize > Minify > JavaScript.
    2. In the Exclude JavaScript from processing section, add the following to the list:
    /wp-includes/js/jquery/jquery.js

    3. Save the settings and clear all caches (WP-Optimize cache, browser cache, and any server-level or CDN cache).

      This should prevent the file from being minified.

      Thread Starter Philippe

      (@wp207)

      Hi @wpmansour

      Thanks. However, as I said in my first message,

      /wp-includes/js/jquery/jquery.js

      is excluded from processing ! I have also cleared all caches, CDN cache too. And the issue is remaining : this Javascript is minified ! And it is a render blocking in PageSpeed Insights ! Can you help me deeper please ? Thanks.

      ronny84

      (@ronny84)

      @wp207

      How long did you have this problem? I have also problems with Pagespeed Insights since last update of WP optimize and jQuery was mentioned sometimes in the report of google.

      Perhaps its the solution for me too. Because my blog is not an large website I turned off caching and just minified CSS in several files. (Not one file for all CSS) But that is only an solution on time until I have found the problem.

      Thread Starter Philippe

      (@wp207)

      Hi @ronny84 I don’t know exactly but many months ! JQuery is Javascript. For your CSS issues, I don’t know, Im sorry.

      @wp207

      for months, okay. No I have no CSS issue. I have problems with the cache. When I disable caching all is fine. If its activated my speed index goes above 4s. Just had a thought after reading your issue, that my problem could be something about jquery as well, because I minify javascrept and defer it too.

      Thread Starter Philippe

      (@wp207)

      @ronny84 Indeed you should have the same issue as me. Lets wait for the answer by WPOptimize ! Good luck !

      The thing is, WordPress core itself minifies jquery.js by default (unless SCRIPT_DEBUG is set to true in your configuration). WP-Optimize works by minifying any unminified scripts but doesn’t process scripts that are already minified by the core, theme, or plugins. These scripts remain in their original minified form on the frontend, even if WP-Optimize is active.

      The same applies to excluded scripts in WP-Optimize. If a script is already minified and added to the excluded list, WP-Optimize won’t unminify it—it simply leaves it as is. If you’d like to test this, you can deactivate WP-Optimize to confirm that the behavior is consistent with WordPress core.

      Thread Starter Philippe

      (@wp207)

      Hi @wpmansour Ok I understand, this is very clear, thank you ! I will consider setting Script_Debug to true eventually. Great day !

      Glad to hear that, thank you!

    Viewing 9 replies - 1 through 9 (of 9 total)
    • You must be logged in to reply to this topic.