Question: why jquery migrate is used?
Answer: jQuery Migrate is a javascript library that allows you to preserve the compatibility of your jQuery code developed for versions of jQuery older than 1.9. It basically restores deprecated features and behaviours so that older code will still run properly on the current jQuery version and later.