Live data from Hacker News

A day without JavaScript

sonniesedge.co.uk

11–20 of 412 posts

Re: A day without JavaScript

#11

One of my clients loads a 4.5 Mb bower.js (including Angular with a lot of components and jQuery), they also include an extra jQuery script, a full jQuery UI and several other scripts on each pageload . Nothing is minimized. The bower file alone has 300k in comments. The CSS file is also nearly 1 Mb. It's just a simple website with some forms. They have 2 developers working on the site, a scrum master, a project mana…

Not really an answer to your question, but this might be useful: http://youmightnotneedjquery.com

Re: A day without JavaScript

#14
post #5

I found that Google actually works better without Javascript. It's much more like the Google of old (c.1998). One significant enhancement (w/o JS) is that you can type something in the search bar without losing your current results while you're typing.

To do this without turning off JS, under Settings > Search Settings > Google Instant Predictions, select "Never show Instant Results"

Re: A day without JavaScript

#15

I generally agree with what he is saying, but the web has moved beyond the point where its reasonable to expect websites to have JS fallbacks. It is just too prominent now a days. I've always been a JS hater, though I have to code it frequently.. However, with that said I find the arguments against the language becoming more and more obsolete as the years go on.

It's not becoming obsolete. Because of legacy code, docs and the fact the old behavior is still valid JS, beginners are still completely lost because of this bad design that never been fixed, only compensated by adding things.

Now add the fact that:

- the ecosystem is exploding like a holy grenade, only not as funny

- having to learn what "rebinding this in the closure's callback" is still core to the path to the language understanding.

- you have so many ways to do things, especially asynchronously, and yet no simple way to do simple stuff like removing an item from an array

- pre-processors are used everywhere and you have so many of them

- safari is becoming the new IE6

We are still very much paying the price of the terrible language that is Javascript.

Re: A day without JavaScript

#16

I generally agree with what he is saying, but the web has moved beyond the point where its reasonable to expect websites to have JS fallbacks. It is just too prominent now a days. I've always been a JS hater, though I have to code it frequently.. However, with that said I find the arguments against the language becoming more and more obsolete as the years go on.

It's not unreasonable to expect hyperlinks or images to work without JS. Fancier stuff sure, but basic navigation through a content only site should be functional without it. This is what HTML does and you have to be profoundly lazy to screw that up.

Re: A day without JavaScript

#17

One of my clients loads a 4.5 Mb bower.js (including Angular with a lot of components and jQuery), they also include an extra jQuery script, a full jQuery UI and several other scripts on each pageload . Nothing is minimized. The bower file alone has 300k in comments. The CSS file is also nearly 1 Mb. It's just a simple website with some forms. They have 2 developers working on the site, a scrum master, a project mana…

Chrome 59 has a coverage tool built-in: https://developers.google.com/web/updates/2017/04/devtools-r...

Re: A day without JavaScript

#19

I generally agree with what he is saying, but the web has moved beyond the point where its reasonable to expect websites to have JS fallbacks. It is just too prominent now a days. I've always been a JS hater, though I have to code it frequently.. However, with that said I find the arguments against the language becoming more and more obsolete as the years go on.

> the web has moved beyond the point where its reasonable to expect websites to have JS fallbacks

For people with powerful smartphones and reliable internet, this may be true.

Let me point you to: https://danluu.com/web-bloat/ (discussion: https://news.ycombinator.com/item?id=13601451 )

Post reply on HN