Uncaught TypeError: e.indexOf is not a function at S.fn.init.S.fn.load (jquery.min.js:2) code example

Example 1: e.indexOf is not a function at k.fn.init.k.fn.load

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:

$(window).load(function(){...});

with the following:

$(window).on('load', function(){ ...});

Example 2: S.fn.load

$(window).on('load', function(){});

Tags:

Misc Example