3 ms·
I'm ashamed to be calling myself a web developer... What's up with everyone including tons of code from others, code they don't even know. "Wooah, we need to t
by NightlyDev 9y ago
I'm ashamed to be calling myself a web developer... What's up with everyone including tons of code from others, code they don't even know.
"Wooah, we need to toggle a class here!"
"We got jQuery for that!"
"We also need to.."
"Oh, we got this for that!"
Take this page as an example. It freaking huge, and the writer seems to think he has done a good job optimizing it now.
The page is really simple, and still a 1.66 MB JS bundle is required to even begin rendering the page.
And still the page doesn't work properly if you just do something as simple as view one external link and press the back button in an attempt to get back.
I know of a JS framework that might fix it, and it's only 7.6 MB. /s
Seriously, people should write about stuff they know.
- jonluca 9y agoThanks for the reply. I agree that 1.66mb is insane for what my site does, and I'm working on minifying it as much as possible. I got it down to ~90kb, which is still not amazing, but is significantly better than 1.6mb. Fonts were taking up more than 90% of that, which I just stripped. I do disagree with the idea of including code from others being a bad practice/smell. The detriment and added load time of using a library like jQuery is well worth the functionality it provides, IMO. Thanks for the comment and for pointing out a problem with the article, though - I've revised it!
- tinymollusk 9y agoJust a quick vote to reinforce what you did. You made something, and asked for the most absurd audience to critique it. Keep being you. HN hated Dropbox, of all things. I am hesitant to announce my product here because I struggle with as widespread of negativity as I perceive here. If someone isn't going to buy what you're selling, I feel they should be silent and just not buy. If they would buy with a small tweak, there are ways for Bad PMs to put up their credit card. Otherwise, ignore their advice, ignore mine, and keep pushing. For the people who ask for more, yeah. There's always room for improvement. But if you take down people within our community, you can go sit and spin.