-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove jQuery dependency #570
Comments
I would like this as well (in an ember app) |
👍 |
Anybody attempt forking this and removing jquery? |
It does not make sense for the author to remove the jQuery dependency - it is a lot of work and the JavaScript file will end up being much larger as a result. Also a lot of devs use this in tandem with jQuery for older projects that we cannot afford to upgrade to React/Angular setups. |
If you're using it in tandem, makes sense. If not, your overall javascript file would decrease a good proportion as you're cutting out an entire library. Yes, jQuery is used frequently, but it would be incorrect to say that most sites in the wild use jQuery. My particular case is a small web app who's overall size is smaller than the jQuery library, and all I need is a simple notification library. |
@AStoker You seem to have missed my point. Of course, it is entirely possible to cut out the jQuery dependency. But why should the author do so? Leaving it like that allows it to easily hook into existing projects. It makes sense to me to leave this repo as is. It is already well established as a jQuery plugin. You may find that someone has done it already... |
yep - keep jquery - Nothing wrong with it as it is. |
Just been looking through the source. For whatever reason it supports NodeJS. |
I appreciate the dialog @crazyredd. Thanks for pointing out the potential |
@AStoker can you provide a link to your fork - I'd like to watch and help with it |
@adonespitogo, once I start taking a crack at it, I'll post it here. Would be great if I identify all the places that need to be adjusted and make a checklist so others can help out. |
@adonespitogo, I just created a checklist document in a fork (a branch of a fork). Just threw it together real quick, it's more of a placeholder than anything else 😜 But it'll give you something to watch or contribute to. |
@AStoker nice list you put together. Although I'd prefer if we drop jquery dependency completely and rename it like Another idea is to create a subset of jquery functions that we can import as jquery poly-fill for projects that don't use jquery. |
@adonespitogo, my goal would be to limit fragmentation. Maintaining |
As my PR (#603) is still open, I did some homework. I removed jQuery and added Typescript to toastr in my repo. I will do some unit tests as soon as I have time. But it works for me at the moment. NPM: https://www.npmjs.com/package/toastr2 EDIT: |
Great, Please keep up the good work. |
Is it possible for you to release a version without jquery as a dependency?
Nowadays developers use Aurelia, Vue, Angular for their projects and don't need jquery.
The text was updated successfully, but these errors were encountered: