jQuery Migrate Warning After Update

edited December 2016 in Theme support
After I updated my theme, I noticed this appearing in the log being triggered by the plugins.js file during the Waypoint section. The .load() event was deprecated in jQuery 1.8 and removed in jQuery 3.0.  I fixed this warning by changing the $(window.load(function(){ to $(window).on('load', function(){ on line 1842. of scripts.js and I went in and updated the plugin.js file with the most recently updated git repo for Waypoint and that 'warning' disappeared.  https://github.com/imakewebthings/waypoints/blob/master/lib/jquery.waypoints.min.js Assuming that it was not customized. I haven't tested compatibility yet with the theme. 

JQMIGRATE: Migrate is installed with logging active, version 1.4.1

JQMIGRATE: jQuery.fn.load() is deprecated
migrateWarn @ jquery-migrate.js:45
jQuery.fn.(anonymous function) @ jquery-migrate.js:560
(anonymous) @ plugins.js:formatted:11214
(anonymous) @ plugins.js:formatted:10742
(anonymous) @ plugins.js:formatted:10744
(anonymous) @ plugins.js:formatted:11219



Sign In or Register to comment.