react-tippy icon indicating copy to clipboard operation
react-tippy copied to clipboard

Clarify use of 'lightweight' in describing this library

Open jsonnull opened this issue 6 years ago • 3 comments

react-tippy advertises itself as "a lightweight tooltip for React."

At a glance this would seem to be a misuse of the word 'lightweight'. Bundlephobia reports the size of react-tippy as 189.5kB minified and 56.7kB gzipped. This seems pretty far from lightweight, unless lightweight is intended to describe something besides size. In that case, there's probably a more accurate word to describe react-tippy.

As a point of comparison, react-popper (also based on popper.js) is only 30kB minified and 9kb gzipped. This includes popper.js in the build.

Perhaps there's some bundling or dependency management errors that are contributing to bundle size which could be looked into.

jsonnull avatar Jun 07 '18 12:06 jsonnull

I mean you can just check the dist directory, I do not understand how it could be 190kb when the un-minified js is around 80kb. Not that I am defending that size, it is still utter insanity for a tool-tip library.

Introvertuous avatar Jun 27 '18 00:06 Introvertuous

Oh... it is that popper.js dependency.

Introvertuous avatar Jun 27 '18 00:06 Introvertuous

Popper.js gzipped is 7kb, the v1 of react-popper doesn't bundle Popper.js anymore, but it bundles quite some polyfills that should probably be reduced 🙄

FezVrasta avatar Jul 16 '18 04:07 FezVrasta