Live data from Hacker News

Show HN: Minified.js – a fully-featured, 4K alternative to jQuery and MooTools

minifiedjs.com

21–30 of 145 posts

Re: Show HN: Minified.js – a fully-featured, 4K alternative to jQuery and MooTools

#23
post #13

A novice question - how significant is the relative size here. Sure - 4 is smaller than 32, but is that really the biggest concern with a JS library (and modern internet speeds)?

In my opinion absolute relative size is actually less important than how many TCP roundtrips it takes. It is no accident the author of this library is trying to fit in under 4KB specifically.

Re: Show HN: Minified.js – a fully-featured, 4K alternative to jQuery and MooTools

#26
This is interesting, but what percentage of the time spent downloading jQuery is actually transferring the file? I would imagine that jQuery is already small enough that the majority of the time is spent just establishing the server connection.

Re: Show HN: Minified.js – a fully-featured, 4K alternative to jQuery and MooTools

#27
post #8

Is this the full comparison? http://minifiedjs.com/#featCmp It seems like that would cover most things I would use, however surely there is more to jquery (that I may or may not be using..) I like that they are including IE6-8, that was a bummer when zepto came out aimed at mobile/modern only

What exactly would you miss (other than some utilities like each(), which are I would like to keep out of the library)? Actually one of the ways I used to decide what features to squeeze in was making a list of all jQuery functions and re-implementing the functionality with Minified. To make sure that I don't miss anything important. There are some things that are more complicated to do, because you need to work with…

Sizzle is actually a big one, CSS1 doesn't really cut it for anything but the most trivial use cases, although if you're only targeting modern browsers than I guess you can rely on their support.

Also, if you don't support each, I assume you don't support method chaining on enumerables?

As for actual missing features, the jQuery data stuff is really useful, but if the intention is to use minified with something like backbone, I guess it's kinda moot.

EDIT: I forgot to say nice library and I like the source code too.

Re: Show HN: Minified.js – a fully-featured, 4K alternative to jQuery and MooTools

#29

Did you make performance tests and comparisons with other libraries?

No, actually I wasn't really interested in that yet. I wouldn't expect it to be that bad performance-wise, but if performance would be my goal, there'd be a number of things I would have done differently.

I also guess that almost all sites the cost of parsing and executing the libraries is more significant than the actual runtime. I mean, there are sites that parse 200kb of ungzipped source code only to execute the 2 kb of them that are required to have some pull-down menus or sliders a couple of times.

Re: Show HN: Minified.js – a fully-featured, 4K alternative to jQuery and MooTools

#30

Earlier quoted context omitted.

Are people really referencing jquery from other servers in production environments?

Yes, it's extremely common to call jQuery from, for example, Google's googleapis.com domain. Here's a quick sampling from a random group of top sites: stackoverflow.com (googleapis.com), kickstarter.com (googleapis.com), cnn.com (their own cdn), businessinsider.com (jquery.com), foxnews.com (their own cdn), nbcnews.com (aspnetcdn.com), espn.com (espncdn.com), tumblr.com (secure.assets.tumblr.com), lastfm.com (googlea…

Just a passing tinfoil comment... Google has so many fingers in the analytics pie, if you're not being recorded by Adsense or Analytics, then there's always CDN.

No idea if it's all linked up, but it means that using alternative search engines doesn't really matter if you still visit Google-enhanced destinations.

Post reply on HN