jQuery 3 slim ajax basic example

jQuery 3 slim version doesn’t support ajax. According to the release docs, Along with the regular version of jQuery that includes the ajax and effects modules, we’re releasing a “slim” version that excludes these modules. All in all, it excludes ajax, effects, and currently deprecated code. To use .ajax method, simply use the full version … Read more

jquery 3.0 url.indexOf error

Update all your code that calls load function like, $(window).load(function() { … }); To $(window).on(‘load’, function() { … }); jquery.js:9612 Uncaught TypeError: url.indexOf is not a function This error message comes from jQuery.fn.load function. I’ve come across the same issue on my application. After some digging, I found this statement in jQuery blog, .load, .unload, … Read more