Hacker News new | ask | show | jobs
by maloney 3504 days ago
Your bundle.js file is 4.4MB and took 30 seconds to load (given several attempts). I would consider getting that under control, at the very least gzip the file.
3 comments

How can a site like this require that much clientside javascript?
Frameworks using frameworks using frameworks using frameworks.

Also: lots of front-end developers are into personal fame - and because they are front-end people they are also good at web-based marketing strategies. This works recursively :/

Oh and also: lots of front-end developers are relatively speaking weak in terms of architecture and general programming ability. (There; I said it.)

It probably shouldn't but JS doesn't have much of a standard library so it's easy to make unfair comparisons.

How big do you think a java client to do the same thing would be?

4MB is an incredible amount of Javascript. All of underscore is less than 6kb, jQuery is less than 70kb. Both of those libs fill out the "standard" library needs of most websites.
No excuse for 4mb though based on what the app does. 50k should do.

For example in a side project I tried SammyJs then realised it requires jQuery. So I just hunted for something that can route urls without the needless dependency. I chose Navigo.

Point is it takes some care but not too hard to keep the size reasonable. Also don't use npm for dependencies on a web site. But npm is ok for tooling e.g. webpack

it's 2016
What a horrible place 2016 is.

The JavaScript is uncompressed and has 6 columns of comment characters on every line. There's really no excuse. This site did not even need JavaScript.

> 6 columns of comment characters on every line

The reinvention of COBOL?

Spotted the front-end developer.
Haha! Yeah, but I don't believe this was necessary at all.
2MB is the ante to get at the big boy's table.
what compels someone to downvote this?
It's not clear what point you're making and it doesn't seem to add much to the conversation.
Stating the current year is not an argument.
Good lord you're right. The question on the landing page should be "are you for/against massive over engineering of client side apps?"
Use a CDN? I already have these libs cached...