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 one.

Here’s the working fiddle

Leave a Comment