joaopereirawd / fakeLoader.js

fakeLoader.js is a lightweight jQuery plugin that helps you create an animated spinner with a fullscreen loading mask to simulate the page preloading effect.
MIT License
721 stars 270 forks source link

Uncaught TypeError: a.indexOf is not a function” error on load #27

Open mimouni opened 6 years ago

mimouni commented 6 years ago

This error might be caused by jquery event aliases like .load, .unload or .error deprecated since jQuery 1.8. Look for these aliases in your code and replace them with .on() to register listeners instead. Example: fakeLoader.js [line:120] $(window).load(function(){...});

becomes:

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

itsDZhang commented 6 years ago

I'm having this issue as well and thanks!

louisnelza commented 6 years ago

Simple update required to the repo :)