4 ms·
46k lines of code for this
by Jamie9912 5y ago
46k lines of code for this
- izietto 5y agoI count 213 JS + 41 CSS = 254 lines
- naoqj 5y agoYou forget the dependencies.
- CapsAdmin 5y agoof course.. :-) I'm not sure what we're talking about here because it's not very obvious where this number comes from. Is it the YouTube API, excluding React? If you're thinking of using a React library, we have to assume you're already using React. Mentioning line count is useless unless you're someone intending to explicitly manage that code. But if so, why stop at 40k? It seems more constructive to talk about the size impact in megabytes or loading time of requiring the YouTube API just to have video playing in the background vs just just hosting your own static video alongside the html. Of course assuming you already use React.
- 11235813213455 5y agohttps://packagephobia.com/result?p=youtube-bg-react https://packagephobia.com/result?p=youtube-bg-react
- izietto 5y agoIf I should point to something that isn't very good is the placeholder test, but the code is ok to me.