Questions tagged [slim-jquery]

Slim JQuery is a slimmer, faster version of regular JQuery which excludes Ajax, effects, Depreciated code, old IE workarounds etc.

Slim JQuery is a slimmer, faster version of regular JQuery which excludes Ajax, effects, Depreciated code, old IE workarounds etc.

Slim Build

Reference: https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/

Sometimes we don’t need ajax, or we prefer to use one of the many standalone libraries that focus on ajax requests. And often it is simpler to use a combination of CSS and class manipulation for all our web animations. Along with the regular version of jQuery that includes the ajax and effects modules, a “slim” version was released that excludes these modules. All in all, it excludes ajax, effects, and currently deprecated code.

The size of jQuery is very rarely a load performance concern these days, but the slim build is about 6k gzipped bytes smaller than the regular version – 23.6k vs 30k. These files are also available in the npm package and on the CDN:

https://code.jquery.com/jquery-3.0.0.slim.js

https://code.jquery.com/jquery-3.0.0.slim.min.js

2 questions
519
votes
9 answers

What are the differences between normal and slim package of jquery?

At CDNJS jquery.slim package is placed. It has a smaller size. What are the major differences from an original? A quick look at the code didn't bring the answer, and at the https://jquery.com I've not found any reference about slim package. So, what…
SynCap
  • 6,244
  • 2
  • 18
  • 27
56
votes
6 answers

JQuery issue "TypeError: $.getJSON is not a function"

I've got this piece of code: $(document).ready(function () { $.getJSON('http://localhost:5000/', function (response) { console.log(response); }); }); localhost:5000 is a flask/python script that returns a json like: { "data": [ …
Gabriel
  • 5,453
  • 14
  • 63
  • 92