Live data from Hacker News

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

minifiedjs.com

11–20 of 145 posts

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

#11
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…

Thats what I was asking lol :) When I look at that list it seems like it covers most of what I do, was just curious.

Like "jquery gives you all of this, do you really use all of it?"

I suppose it's a bad sign when we are using jquery blindly and not really knowing what all that includes..

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

#12
post #6
post #4

Probably 4kB more than loading jQuery from cache :)

That was what I was thinking. What's the selling point since jQuery is already cached?

At one time jquery wasnt cached... and when you want to use a new version of jquery, there goes your cache anyways.

Doesnt seem like a really big argument against, especially considering the size of the library for the first non-cache hit

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

#15
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)?

Size itself is actually not that important. The time to load and process it still is to some degree, especially on mobile, and that increases almost linearly with size.

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

#16
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)?

It's meaningful in a few ways I can think of.

1) For poorer countries with spotty internet, or mobile only that is slow.

2) For mobile, where data use matters.

3) Ideally with a library this small, it's mostly doing exactly what you need it to and nothing else. So it should be faster for what you're using it for. It's not trying to be all things to all people, and the trade off for that should be giving up long-tail features in exchange for more speed.

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

#17
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…

By the way ... one big use case I'm seeing for jQuery replacements lately is being a drop-in replacement for BackBone apps, since they need just a tiny fraction of jQuery's capabilities but do carry around all it's weight for no particularly good reason.

I'm not sure if Minified.js qualifies for that, but if it does you should definitely make a bigger point of that ;)

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

#18
post #4

Probably 4kB more than loading jQuery from cache :)

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 (googleapis.com), lyricsmode.com (googleapis.com), reference.com (sfdict.com, cdn for ask etc), qz.com (googleapis.com), theverge.com (googleapis.com), ehow.com (googleapis.com), wikia.com (googleapis.com), chacha.com (googleapis.com)

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

#19
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)?

> Sure - 4 is smaller than 32, but is that really the biggest concern with a JS library (and modern internet speeds)?

Yes, it is.

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

#20
post #4

Probably 4kB more than loading jQuery from cache :)

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

See https://en.wikipedia.org/wiki/Content_delivery_network.

Use of these (to serve static content) reduces your server traffic/load and gives a faster response times to users in different geographical regions.

Post reply on HN