Thanks! This helped me understand jQuery from 0 knowledge to updating our code with it no problem. I ended up not even having to use Migrate because I tested with 3.5.1 and it worked fine out of the box.
Awesome... thank you for explaining in detail... excepting more vedios from you on java cpncepts also.. Once again thank you explanation was really superb
Including an old version of jQuery alongside the jQuery Migrate plugin in addition to a newer version of jQuery is generally not necessary and is not a recommended practice. The jQuery Migrate plugin is designed to simplify the transition from older versions of jQuery to newer ones. It does this by providing compatibility for features and behaviors that were present in older versions of jQuery but are deprecated or removed in newer versions. You replace the old jQuery script with the new version in your project. Alongside the new version of jQuery, you include the jQuery Migrate plugin. This plugin detects and restores deprecated features and behaviors, so your existing code will still work with the new version of jQuery. The purpose of the jQuery Migrate plugin is to assist in the transition period. It helps you identify deprecated features and behaviors in your code by logging warnings to the console when deprecated features are used.
Hi, my project is currently using jquery-1.11.0 version and also we used jquery migrate plugin 1.2.0, if i want to upgrade to latest version is it fine to use another migrate plugin and new version, or do i need to change all deprecated methods in the code to latest so that to avoid migrate plugin. my code is very old and has so many modules please help me with this
The purpose of the jQuery Migrate plugin is to assist in the transition period. It helps you identify deprecated features and behaviors in your code by logging warnings to the console when deprecated features are used. After updating your code to be compatible with the latest jQuery APIs and removing any dependencies on deprecated features, both the old version of jQuery and the jQuery Migrate plugin should be removed from your project. This is because maintaining them is unnecessary and could lead to confusion, increased page load times, and potential conflicts.
What is the proper way to do a Migration when jQuery library files were included in project files? This tutorial only explains migrating when URL is used to reference the library.
It will affect page speed. That is why it's better to use upgraded libraries so that you can use only one latest jQuery version. Drop old libraries that depend on older version of jQuery.
@@webstylepress After added jquery-migrate-3.3.0.min.js, the console said "jQuery 3.0.0+ required", I think it means we can add jQuery 3.5.1 instead of 3.0.0 and that's all. Anyway I not tested it yet, it's just my opinion.
@@webstylepress I have got the below error after upgrade please help... Uncaught TypeError: $(...).popupWindow is not a function at HTMLDocument. (main.js:155) at fire (Jquery.js:1046) at Object.fireWith (Jquery.js:1164) at Function.ready (Jquery.js:435) at HTMLDocument.DOMContentLoaded (Jquery.js:923)
@Vishal Kumar can you please guide me to migrate jquery version 1.6.4 to 3.6.4? without Migrate plugin I have just updated the nuget package but now my jasmine unit test cases are failing with $ is not defined, So we need to go only via migrate plugin, have done migration in your project?
To watch more related videos, please LIKE, SHARE & SUBSCRIBE! WebStylePress needs your support.
Thanks!
This helped me understand jQuery from 0 knowledge to updating our code with it no problem.
I ended up not even having to use Migrate because I tested with 3.5.1 and it worked fine out of the box.
Glad it helped!
Hello we are using 2.1.3 in our project do we need to add migration plugin or we have to directly paste latest version link?
Awesome... thank you for explaining in detail... excepting more vedios from you on java cpncepts also.. Once again thank you explanation was really superb
Thank you very much... this really helped us understand the concept..!
Could you please explain the procedure to upgrade JQuery version in Workspace One UEM ?
is it necessary to keep old jquery version also if we use jquery migrate plugin with new jquery version
Including an old version of jQuery alongside the jQuery Migrate plugin in addition to a newer version of jQuery is generally not necessary and is not a recommended practice. The jQuery Migrate plugin is designed to simplify the transition from older versions of jQuery to newer ones. It does this by providing compatibility for features and behaviors that were present in older versions of jQuery but are deprecated or removed in newer versions. You replace the old jQuery script with the new version in your project. Alongside the new version of jQuery, you include the jQuery Migrate plugin. This plugin detects and restores deprecated features and behaviors, so your existing code will still work with the new version of jQuery. The purpose of the jQuery Migrate plugin is to assist in the transition period. It helps you identify deprecated features and behaviors in your code by logging warnings to the console when deprecated features are used.
Hi, my project is currently using jquery-1.11.0 version and also we used jquery migrate plugin 1.2.0, if i want to upgrade to latest version is it fine to use another migrate plugin and new version, or do i need to change all deprecated methods in the code to latest so that to avoid migrate plugin. my code is very old and has so many modules please help me with this
The purpose of the jQuery Migrate plugin is to assist in the transition period. It helps you identify deprecated features and behaviors in your code by logging warnings to the console when deprecated features are used. After updating your code to be compatible with the latest jQuery APIs and removing any dependencies on deprecated features, both the old version of jQuery and the jQuery Migrate plugin should be removed from your project. This is because maintaining them is unnecessary and could lead to confusion, increased page load times, and potential conflicts.
it's nice...and easy to understand. Could you also explain the procedure to upgrade jquery version fom 2.x to 3.x. Thanks in advance.
Thanks dear. from Kerala
What is the proper way to do a Migration when jQuery library files were included in project files? This tutorial only explains migrating when URL is used to reference the library.
If we add all version jquery library then It will not affect on page speed as we are including 3 library for jquery
It will affect page speed. That is why it's better to use upgraded libraries so that you can use only one latest jQuery version. Drop old libraries that depend on older version of jQuery.
@@webstylepress After added jquery-migrate-3.3.0.min.js, the console said "jQuery 3.0.0+ required", I think it means we can add jQuery 3.5.1 instead of 3.0.0 and that's all. Anyway I not tested it yet, it's just my opinion.
How can you solve deprecation notices?
I could hear someone snoring at the back haha. anyway good video !
haha! 😂😀 yes true. I was working on PC and wife was sleeping in same room.
Can i update this query in each page of the website?
Yes
@@webstylepress I have got the below error after upgrade please help...
Uncaught TypeError: $(...).popupWindow is not a function
at HTMLDocument. (main.js:155)
at fire (Jquery.js:1046)
at Object.fireWith (Jquery.js:1164)
at Function.ready (Jquery.js:435)
at HTMLDocument.DOMContentLoaded (Jquery.js:923)
Try jQuery instead of $
@@webstylepress tried still same error came
Make sure element exists at page where something is being initialized at it via jquery.
Awesome. Thank you
Can you please show how with require.config({ Thanks!
Thanks a lot
Appreciated your help, Thanks
U forget to delete old migration.js and old JQ.
Please explain more.
@Vishal Kumar can you please guide me to migrate jquery version 1.6.4 to 3.6.4? without Migrate plugin I have just updated the nuget package but now my jasmine unit test cases are failing with $ is not defined, So we need to go only via migrate plugin, have done migration in your project?
This is really helpful, I need a ASAP help for a project.Can you give me your contact?
Appreciated your help, Thanks