• 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

This Article Has Been Shared 318 Times!

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

  • Responsive Web Design, Grid System and Mobile Website

    Responsive Web Design, Grid System and Mobile Website are used for making a website easily viewable on any mobile devices including Tablets. Here is a guide.

  • Installing WordPress via PHP Script : Cloud Sites and Other WebHosts

    Installing WordPress via PHP Script is a very way to install WordPress on your Server via FTP without Shell Access. The script automatically download and unzip.

  • Creating Spinning Logo for WordPress Genesis and Others

    Creating Spinning Logo for WordPress Genesis and Other Themes is quite easy. Move the mouse over the logo and it will spin. You can control the speed,behavior.

  • WordPress Optimization Tricks : The PHP Files

    WordPress optimization tricks offers you some uncommon and common hacks to optimize the Page Loading speed specific to WordPress files only.

  • W3 Total Cache Pro and WordPress Page Loading Speed

    W3 Total Cache Pro has recently been introduced by W3TC Plugin developer and here is some questions frequently asked by the WordPress users as suggestion.

Additionally, 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

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

About This Article

Cite this article as: Abhishek Ghosh, "How To Remove jquery.js and jquery-migrate.js in WordPress," in The Customize Windows, September 24, 2014, January 29, 2023, https://thecustomizewindows.com/2014/09/remove-jquery-js-jquery-migrate-js-wordpress/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT