-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why OverlayScrollbars.js is so heavy? (53kb minified) #15
Comments
Good day! The short answer is: yes, I am planing to reduce the size. - But I think this answer isn't very satisfying. I know, its a little bit hard to justify the size of a scrollbar plugin to the size of a whole framework like vue.js, but there are several reasons why the plugin is so big:
Now after you have some insights about all these things, I can give you some solutions I came up with:
None of these are currently in development or something, but I can't think of other good solutions. Maybe you have a idea? - You can take a look at my code if you want, I think I've done everything possible to hold it as small as possible. (except the DOM handling there is, as I mentioned, room for improvement, but this won't reduce the sice significantly). I hope this answer gave you a better understanding why the plugin has the size which it has. |
Hi Rene, I knew it was a big deal, and I didn't underestimate the reasons, but I understand better know. Keep the good work! |
Good day! I've good news: I know its not much, but I'll improve it further over time. |
Continue work started in commit: 291214b Overlay Scrollbars is a heavy dependency with jQuery (KingSora/OverlayScrollbars#15), needs updating, possibly incompatible with Hugo Easy Gallery (? works as good as without in recent tests), possibly deprecated by M$ Edgium thin scrollbars (?) and I don't like it. It must be toggleable via site config.
Hello @KingSora, and thanks for your work!
I run a
size-limit --why
, because I found that my bundle size was heavy,As you could see, OverlayScrollbars is one of the two heaviest libraries in my bundle, next to vuejs..!
vue.js
:278kb
normal,102kb
minifiedOverlayScrollbars.js
:294kb
normal,53kb
minifiedAny plans to reduce that size?
Thanks,
The text was updated successfully, but these errors were encountered: