What happens if I don’t use the Slim version of jQuery with Bootstrap?

Asked

Viewed 106 times

3

In the Documentation of Bootstrap 4, it guides you to use jQuery’s Slim build. Is there a problem using the normal and full version of jQuery in my project? Is there any incompatibility?

1 answer

3

James the point is that the standard jQuery has a number of things that are not used in Bootstrap as Animations by JS, AJAX and other deprecated and ancient methods. Therefore they indicate the version Slim, that in addition to being smaller in kbs is a leaner version of the features. But if you’re gonna use AJAX or the method .animate() ai vc can import full version of jQuery which has no problem!

Now as you can see in the jQuery documentation both the full version when Slim has its minified version, in Sso compressed and uncompressed https://jquery.com/download/

inserir a descrição da imagem aqui
Difference in kb

inserir a descrição da imagem aqui

I recommend that you read this answer for more details between the full version and the Slim What are the differences between normal jQuery and slim versions?

  • That means q, if you use these features, it’s okay to use ONLY the full release?

  • 1

    @Lipespry actually in the BS documentation does not give many details pq they use the Slim, but the fact is that the BS does not use by default AJAX in anything, just as it does not use the method . Animate() http://api.jquery.com/animate/, so you don’t care about them, it saves you some Kbs. But if you want to use the full version is no problem

Browser other questions tagged

You are not signed in. Login or sign up in order to post.