xxxxxxxxxx
SRY FOR COPYING BUT THIS REALLY WORKS PLS FOLLOW
$(window).on('load', function(){ $(window).load(function(){ });
replace with the following:
$(window).on('load', function(){ });
xxxxxxxxxx
$(window).load(function(){ });
replace with the following:
$(window).on('load', function(){ });
xxxxxxxxxx
This error might be caused by the jQuery event-aliases like .load(), .unload() or .error() that all are deprecated since jQuery 1.8. Lookup for these aliases in your code and replace them with the .on() method instead. For example, replace the following deprecated excerpt: