When I finished the first implementation of jHERE I looked at the code and wondered whether that could work with Zepto as well.
Later on I found out that Zepto is not the only library featuring a jQuery-like API. There is a universe of libraries (Tire, Kimbo, etc.) that aim at the simplicity of jQuery but at the same time try to keep the codebase small and fast.
I decided that making jHERE compatible with Zepto and in my specific case Tire was worth the effort and the little time spent on it.
Why bother in the first place? You make a jQuery plugin and whoever wants to use it can just include jQuery, end of the story. Right? Well, there are at least a couple of good reasons that justify the effort.
Reason number one, as you might have already guessed is bandwidth. Not all users will visit your app over a 100Mbit broadband connection. There are people that still browse the internet through a crappy connection or users that look at your website with a mobile phone, and note that 3G and 4G are not always available.
Reason number two is parsing time. I don't know how many of you looked at performance from this angle before. Computers are generally fast, but other devices, tablets and mobile phones are generally slower, so it might take a while for the JS engine to parse your code. Additionally, the more processing the sooner the device runs out of battery.
So next time you are about to drop a script tag that points to jQuery into your code think whether you really need it. And next time you make a jQuery plugin, consider to make it compatible with other jQuery-like libraries, it isn't super hard.