Library disadvantages in JavaScript

Often, some libraries depend on others. Therefore, before you include a library you need, you need to include its dependencies.

For example, consider the slick library for creating sliders. This library depends on the jQuery library. This means that in order to connect the slider, you also need to include jQuery:

<!DOCTYPE html> <html> <head> <title></title> <script src="jquery-2.2.0.min.js"></script> <script src="./slick/slick.js"></script> </head> <body> </body> </html>

The disadvantage of this approach is that you need to manually download the library and its dependencies, while making sure that the versions of the libraries fit together. If you use several libraries on the site, then this can be a problem. For example, each of your libraries in their dependencies may require jQuery and at the same time different versions. You will have to manually resolve this conflict.

Download the slick library. Connect it and create a slider. Play around with the settings described in documentation.

enru