Is it good to make a jQuery extension that depends on another jQuery extension?

I think this is a " Best Practices" question , but I was wondering if it is possible to make a jQuery extension, which depends not only on jQuery, but also on another jQuery extension.

Thanks for your answers! = D

+3
source share
3 answers

Yes, many jquery plugins do this.

The main thing is that in the documentation you tell the user that they exist and that you follow the existing conventions regarding the location of files.

This entry may also help:

Recommendations for using jQuery plugins and their dependencies

0
source

, . couse : -)

+6

As long as you make it very clear to the user that this is a requirement, I do not see any serious problems with this. The same is required with the jQuery user interface.

In addition, make the required extension as simple as possible.

0
source

Source: https://habr.com/ru/post/1736030/


All Articles