• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Remove jquery.js and jquery-migrate.js in WordPress

By Abhishek Ghosh September 24, 2014 12:00 pm Updated on September 24, 2014

How To Remove jquery.js and jquery-migrate.js in WordPress

Advertisement

Technically we should not remove default jquery.js file, but we need removal for speed. Here is how to remove jquery.js and jquery-migrate.js. You can expect that, after a couple of years; for not having HTTPS and a super fast website, even with good content like ours, you can get highly penalized. Browsers might throw such horrible scary message, an ordinary user, if somehow finds your website will fly away. We wrote about How to Eliminate Render-blocking Javascript and CSS in WordPress almost a year back from today and it took 9 months for us to really implement. Yet, we know there are points can be made better. The reason of this huge time consumption is nothing but – WordPress has certain peculiar problems and the not all the Plugins are 100% compatible with the latest version we use.

 

Check Usability Before Searching For How To Remove jquery.js and jquery-migrate.js in WordPress

 

Removing both these files – jquery.js and jquery-migrate.js by deregistering the scripts and then injecting the scripts in some way can pathetically break certain plugin’s function. The reason possibly is the order of HTML5 DOM loading via scripts. You can expect abnormal functions of syntax highlighter, image slideshow plugins on the fronted.

It might happen that removal of only one will not break your website. But removing both the default core files, even compromising Page Speed CDN Tick is acceptable if everything goes rightly. All of us making the WordPress faster by combination of multiple plugins, manual codes in theme’s functions.php file. For logical conflict, many things which are not expected can happen.

Advertisement

---

Forget more complex factors like server side caching, implementation of CORS, DNS caching, HTTP Caching. Front end designing has been so much difficult, that sometimes we need to compromise. Not all, essentially can pay a better front end designer or might not like all the modifications done by him/her. A bit compromise :

How To Remove jquery.js and jquery-migrate.js in WordPress

 

How To Remove jquery.js and jquery-migrate.js in WordPress

 

This is for removing jquery-migrate.js :

Vim
1
2
3
4
5
6
7
8
9
add_filter( 'wp_default_scripts', 'remove_jquery_migrate' );
function remove_jquery_migrate( &$scripts)
{
    if(!is_admin())
    {
        $scripts->remove( 'jquery');
        $scripts->add( 'jquery', false, array( 'jquery-core' ), '1.10.2' );
    }
}

And this is for removal of jquery.js :

Vim
1
2
3
4
add_action('wp_enqueue_scripts', 'no_more_jquery');
function no_more_jquery(){
    wp_deregister_script('jquery');
}

You can see a dream like score with this design with WordPress :

Vim
1
https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fthecustomizewindows.com%2Fprivacy-policy%2F&tab=desktop

If we load more images inside a post, our score will get worser. Additionally Ads will decrease the score. We are retaining the function of default jquery.js loading, because simply – you would be unable to copy the above codes if we disturb the sequence.

A server, takes a bit time to clear the Cached files, again generate gzip files. It is not a great idea to test too much.

Tagged With wordpress jquery optimization , remove jquery from wordpress , migrate js , jQuery Remove JS File , jquery migrate js , jquery migrate genesis , jquery migrate file needed? , how to uninstal jquery plugin for good , how to remove the wp-includes jquery js file in wordpress , wordpress render-blocking javascript jquery js
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Remove jquery.js and jquery-migrate.js in WordPress

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • How to Correctly Include jQuery-UI Effects on WordPress

    How to correctly include JQuery-UI effects on WordPress on your existing Theme without much compromise on Page Loading Speed? It is made easy with our Guide.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • jQuery ScrollTo and Custom Tables in WordPress Posts

    jQuery ScrollTo and Custom Tables in WordPress Posts Can Add a Nice Experience to Your Visitors and Blog Readers. Here is How One Can Create Post Specific One.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy