Home / functions.php / Remove l10n.js javascript in wp 3.1+
  • Anonymous

    Hey!

    Could you please explain how to remove jQuery UI, jQuery UI Widget and jQuery UI Tabs as well? As I’m not using them on my website, I’d like to stop them from loading.

    Thanks in advance.

    • Hi ucarmetin
      Are these part of the theme or plugin?
      you should be able to just use this if the plugin or theme registered things that way.
       
      wp_deregister_script(‘name of script’);

      • Anonymous

        they’re loaded neither by the theme nor any of the plugins i’m using. i’ve come to this conclusion after doing further investigation of the theme and plugin code as well contacting theme developers. anway, i’ll try your suggestion.

        thanks.

        • If you can let me know some of the plugins you are running I can take a look. Rather then post a list publicly just click the contact link at the bottom of the wpsnipp.com site and send an email ill check things out.

    • Hi ucarmetin
      Are these part of the theme or plugin?
      you should be able to just use this if the plugin or theme registered things that way.
       
      wp_deregister_script(‘name of script’);

  • The code on the page misses the last }

    • Thanks Alexey, Didn’t notice that, updated the post.