juggle / resize-observer

Polyfills the ResizeObserver API.
https://juggle.studio/resize-observer
Apache License 2.0
964 stars 46 forks source link

Refactor and reduce code to allow for a smaller bundle size #100

Open TremayneChrist opened 4 years ago

TremayneChrist commented 4 years ago

Supporting added ResizeObserver features and improving the library, has increased the bundle size. As the specification is now at a stable state, it could be a good time to refactor and streamline the code.

Size: 2.8KB, minified and gzipped. Goal: <=2.5KB, minified and gzipped.

https://bundlephobia.com/result?p=@juggle/resize-observer

TremayneChrist commented 4 years ago

Would also be happy with staying around 2.8KB with all the additional features for v4.