I am getting following error from jQuery once it has been updated to v3.0.0.
v3.0.0
jquery.js:9612 Uncaught TypeError: url.indexOf is not a function
Better approach may be a polyfill like this
jQuery.fn.load = function(callback){ $(window).on("load", callback) };
With this you can leave the legacy code untouched. If you use webpack be sure to use script-loader.