r/ProgrammerAnimemes • u/bucket3432 • Jan 30 '20
OC Dependencies
Enable HLS to view with audio, or disable this notification
1.6k
Upvotes
r/ProgrammerAnimemes • u/bucket3432 • Jan 30 '20
Enable HLS to view with audio, or disable this notification
View all comments
Show parent comment
5
u/bucket3432 Jan 31 '20
There's nothing wrong with using a library, but it would be responsible to shop around first to see if there's anything lighter if you only need a function or two.
That's just the thing: if your users are a known subset or you're targeting a certain demographic, maybe not, but if your users are anyone on the Internet, people with metered connections are going to care. 500kb still goes over the Internet, and the page loads that much slower for them. 500kb is the equivalent of a large image, but unlike an image, it'll block the page from rendering since it's a script.