News for hackers. Stuff that matters.
Re:I bootstrapped my private-journaling project into a lifes... by rtkwe on Tuesday June 25, 2019 @01:06PM (#20276388)
"I disabled one of the core technologies of the modern web and it breaks things."
Re:I bootstrapped my private-journaling project into a lifes... by dang on Tuesday June 25, 2019 @01:43PM (#20276781)
Re:I bootstrapped my private-journaling project into a lifes... by komali2 on Tuesday June 25, 2019 @01:20PM (#20276524)
I get your point in general regarding the internet, but I'm not clear at all on how Javascript would be required for any of the tasks in this website.

1. Show text content

2. Make the text content look good

3. Allow submission to a comment section

All of those things can be accomplished with some or none javascript. Why make the job harder than necessary? Why screw over screenreaders?

Oh, I see there's a graph there, that probably would use some JS. But why not just hide the graph for noscript users?

Re:I bootstrapped my private-journaling project into a lifes... by tracker1 on Tuesday June 25, 2019 @01:29PM (#20276636)
I'd definitely make the main blog content display without JS... I don't think I'd do that for comments, in fact, been thinking of making something that only supports browsers with web crypto to do a pbkdf2 challenge in order to submit a comment. From there, would add a few more other pieces to sign said submission including the challenge. Although it would eliminate old browsers (and non-chrome edge), it would probably still be better than most captcha solutions.
Re:I bootstrapped my private-journaling project into a lifes... by inetknght on Tuesday June 25, 2019 @01:22PM (#20276546)
Why not pre-render the graph and serve the pre-rendered image?
Re:I bootstrapped my private-journaling project into a lifes... by komali2 on Tuesday June 25, 2019 @01:24PM (#20276575)
That'd be even better! I'm not sure how I'd do that off the top of my head, or if I'd bother for a blog post, but it's definitely a good idea.

I think the mouseover behavior on the graph is cool though so having both (one for javascript people, one for non-JS people) is smart.

It's completely inaccessible to screenreaders, though. I just get "Average Monthly Revenue 2012- 2018 canvas element."

Re:I bootstrapped my private-journaling project into a lifes... by theseadroid on Tuesday June 25, 2019 @01:40PM (#20276758)
Javascript might not add much value to the reader/end user, but it can/might have made building the above 3 functionalities much faster and easier for the developer. Without Javascript we simply might not have all those great content to begin with.

So if it makes the content creators' lives a bit easier, the cost of making the job harder for a small group of end users might be worthwhile.

Re:I bootstrapped my private-journaling project into a lifes... by Avery3R on Tuesday June 25, 2019 @01:15PM (#20276468)
"Just download 8 megabytes of javascript and wait 10 seconds for a page that's mainly made up of static content and should be under ~1mb and load instantly"
Re:I bootstrapped my private-journaling project into a lifes... by andai on Tuesday June 25, 2019 @01:17PM (#20276494)
It's mostly text, isn't it? So more like 10kb.
Re:I bootstrapped my private-journaling project into a lifes... by pjc50 on Tuesday June 25, 2019 @01:59PM (#20276959)
The page load took a second, on a desktop tethered to 4G. Chrome says "1.6MB transferred, 6.7MB resources" presumably because Google Analytics was a cache hit. Much of that is obfuscated-looking Ember containing some SVG and JSON inlined.

A ctrl-R only loads about 20kb but still takes about half a second to render.

Re:I bootstrapped my private-journaling project into a lifes... by dymk on Tuesday June 25, 2019 @01:19PM (#20276517)
The page loaded in about a second for me
Re:I bootstrapped my private-journaling project into a lifes... by komali2 on Tuesday June 25, 2019 @01:21PM (#20276543)
20.4 seconds for me, before I could see text at all.

If the SEO people are to believed, a vast majority of people would click away, what, 5 seconds into that?

Re:I bootstrapped my private-journaling project into a lifes... by owlninja on Tuesday June 25, 2019 @01:24PM (#20276578)
Just curious, what is your connection?
Re:I bootstrapped my private-journaling project into a lifes... by komali2 on Tuesday June 25, 2019 @01:58PM (#20276947)
3g
Re:I bootstrapped my private-journaling project into a lifes... by thrwaway3832 on Tuesday June 25, 2019 @01:38PM (#20276732)
How long do you think is reasonable to give gmail to load and display my interactive mailbox, on old hardware? It really annoys me.
Re:I bootstrapped my private-journaling project into a lifes... by grey-area on Tuesday June 25, 2019 @01:18PM (#20276505)
This statement is only true for certain values of modern web.
Re:I bootstrapped my private-journaling project into a lifes... by urda on Tuesday June 25, 2019 @01:21PM (#20276538)
"I need 8 megs of Javascript and a loading splash screen to display my own blog article in the 'modern web'".

No you don't.