microjs/microjs.com

Some libraries have outgrown the limit... (and some don't fit)

dead-claudia opened this issue · 2 comments

Specifically these, as per the website (sizes as of March 21):

  • Marked (5.1kb)
  • Backbone (7.3kb)
  • List.js (5.1kb)
  • Intro.js (5.6kb)
  • Platform.js (5.4kb)
  • Zepto (5.1kb)
  • Underscore (5.5kb)
  • Dom.js (5.3kb)
  • router5 (6.7kb)

Out of these, some I know do more than one thing:

  • Backbone is a framework, designed to fufill many use cases with numerous features.
  • Zepto is a partial drop-in jQuery replacement. It does quite a few things in its core build.
  • Underscore does several things, since it's a general purpose utility belt.

Maybe, some of these should be commented out/removed?

Hi again @isiahmeadows ! I stumble upon you in many places 😄

Agree with you about oversized libs in the list!

The 5K limit is weird anyway.... The reason we want these libraries to be small is so they will load fast. This would make either 4K or 8K a better number as it aligns better with network packet sizes, disk sectors etc.

8K does seem big for a micro-framework though...

The 5K limit is weird anyway.... The reason we want these libraries to be small is so they will load fast. This would make either 4K or 8K a better number as it aligns better with network packet sizes, disk sectors etc.

Perhaps a solution could be to divide the libraries into categories like these:

  • Light/feather weight: Those that weigh less than 5 KB.
  • Medium weight: Those that weigh between 5 and 10 KB.
  • Heavyweight: Those that weigh more than 10 KB (maybe with a limit of up to 20 or 30 KB).

That way it wouldn't be necessary to remove what exceeds 5 KB (just recategorize it) and that would also encourage more people to submit commits of libraries that meet the other requirements except for the 5 KB limit.