• I want to remove this line from just one page in my website. I want to keep it for all the other pages so they don’t break:

    
    <script type='text/javascript' src='https://www.mywebsite.com/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script>
    

    I tried messing around with the funtcions.php but could only get the script to remove on all pages. No the one I want (url is below).

    How can I remove it from one page?

    • This topic was modified 4 years, 2 months ago by Jan Dembowski.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • You have to adjust the code that depends on it. If no code is loaded that depends on jquery, then jquery is not loaded.

    Thread Starter fernandolawl

    (@fernandolawl)

    Hi Joy
    I have had all my plugins turned off and it still shows. So that means that there’s no code that depends on it (so I believe).

    I did some digging around and found out that a lot of people are calling it render-blocking script and are either totally removing it or putting it down in the footer. I need it totally removed from just one page.

    Here is an example of what I found but it doesn’t totally help because I just need the script removed from one page – not the whole site.
    https://wordpress.org/support/topic/eliminate-render-blocking-javascript-and-css-in-above-the-fold-content-64/

    Thanks again

    I could be loaded by the theme.

    Thread Starter fernandolawl

    (@fernandolawl)

    Looks like it happens with all wordpress sites. I found and purchased a plugin called perfmatters. It works. Although I wish there was a script to through functions.php.
    Thank you for your time 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove including of jquery.js from a specific page?’ is closed to new replies.