Re:Ask HN: Best tiny JavaScript framework?
by ppetty on Friday March 17, 2017 @08:12PM
(#13899102)
One option would be to custom build jQuery and omit the parts you don't need or like. The libraries posted all have their merits; but jQuery has so much traction. That means more folks ready to hit the ground running on what you're building ... https://github.com/jquery/jquery
Edit Gruntfile.js to do that or try a site like: projects.jga.me/jquery-builder/
You can get sub-20Kb builds with just what you need. I did that recently to inline the core parts ...
One tip, if you use the builder, take a screenshot! The file generated will have a comment block with - in front of omitted modules, e.g. -ajax if you prefer plain old fetch & other useful info. But the screenshot shows exactly what options you set.
Edit Gruntfile.js to do that or try a site like: projects.jga.me/jquery-builder/
You can get sub-20Kb builds with just what you need. I did that recently to inline the core parts ...
One tip, if you use the builder, take a screenshot! The file generated will have a comment block with - in front of omitted modules, e.g. -ajax if you prefer plain old fetch & other useful info. But the screenshot shows exactly what options you set.