News for hackers. Stuff that matters.
Re:I bootstrapped my private-journaling project into a lifes... by oil25 on Tuesday June 25, 2019 @01:02PM (#20276317)
Would like to read this, but I just get a blank page with Javascript disabled. Looks like I can't even archive the page - https://archive.fo/kLTbo. Looking at the page source code, it's completely unreadable - just a single line with a bunch of third party scripts and trackers. Disappointment over what the Web has become ensues.
Re:I bootstrapped my private-journaling project into a lifes... by sp332 on Tuesday June 25, 2019 @01:14PM (#20276467)
The site does have an odd architecture. I can't even find the article text in one of the downloaded files. Kinda looks like they serialized a large JS object into a string inside one of the JS files, wonder if it's in there.

In addition to being un-archivable, it's probably also impossible to use with a screen reader.

Edit: ok I don't really know anything about screen readers. I just miss graceful degradation being a priority of web design.

Re:I bootstrapped my private-journaling project into a lifes... by dymk on Tuesday June 25, 2019 @01:21PM (#20276537)
The DOM of the loaded page clearly has the article content in it (just right click -> inspect), and is visible to a screen reader.
Re:I bootstrapped my private-journaling project into a lifes... by komali2 on Tuesday June 25, 2019 @01:26PM (#20276598)
Pop a screenreader on for yourself and see - I just tried and it read the "empty" ember-div div and then stopped. If I have my eyes closed, I have no way of knowing content rendered 20 seconds after it finished (when the text content finally loaded).
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.

Re:I bootstrapped my private-journaling project into a lifes... by beat on Tuesday June 25, 2019 @01:41PM (#20276765)
I'm curious how you managed to post a comment about it on HN with Javascript disabled. Is it even possible to post here without using Javascript? (Maybe it is, I dunno.)
Re:I bootstrapped my private-journaling project into a lifes... by vbsteven on Tuesday June 25, 2019 @01:48PM (#20276839)
It's not about hardline blocking javascript and never running a single line of code. I run NoScript (probably similar to the parent) and block all javascript by default because I don't want anyone else executing code on my machine unless I say so. I selectively enable only the JS that is required. For HN that means enabling one file with about 150 lines of surprisingly clear code.

I had the same experience as the parent in that I could not read anything unless I enabled a ton of files and once the content became readable it was stuttering all the time while scrolling. In 2019, on a beefy 8 core machine with 32GB of memory.

Re:I bootstrapped my private-journaling project into a lifes... by ncheek on Wednesday June 26, 2019 @02:02AM (#20282286)
I use HN with Javascript disabled and it works just fine. I'm currently posting this comment with JS disabled so to answer your question, yes it is possible.
Re:I bootstrapped my private-journaling project into a lifes... by pmoriarty on Wednesday June 26, 2019 @01:05AM (#20282061)
Yes, it is possible to post a comment (or submit an article, or do just about anything else) on HN without Javascript enabled. This reply is an example. I'm using emacs-w3m to post it, and emacs-w3m does not understand Javascript.

I virtually always use HN without Javascript. It works great.

Re:I bootstrapped my private-journaling project into a lifes... by mcintyre1994 on Tuesday June 25, 2019 @01:47PM (#20276825)
Why wouldn't it be? It's just HTML forms - with a server-side action.
Re:I bootstrapped my private-journaling project into a lifes... by beat on Tuesday June 25, 2019 @01:53PM (#20276890)
I was going to say "Without Ajax?", but when replying, realized that HN creates a reply page, so you're right... html forms should be sufficient. It's not trying to do inline comments on a live page.
Re:I bootstrapped my private-journaling project into a lifes... by neonate on Tuesday June 25, 2019 @01:44PM (#20276796)
I just disabled Javascript in Safari. Does this work?
Re:I bootstrapped my private-journaling project into a lifes... by xwdv on Tuesday June 25, 2019 @01:43PM (#20276780)
Want to build your own side business and save the web at the same time? Every time you come across these sites offer to convert their site to a fully static page.
Re:I bootstrapped my private-journaling project into a lifes... by bluedino on Tuesday June 25, 2019 @01:30PM (#20276649)
I had the same problem trying to access the site with Lynx.
Re:I bootstrapped my private-journaling project into a lifes... by CraneWorm on Tuesday June 25, 2019 @01:27PM (#20276607)
I have it enabled and the only thing that loads is a fluff quote and nothing else.
Re:I bootstrapped my private-journaling project into a lifes... by jdironman on Tuesday June 25, 2019 @01:14PM (#20276459)
Archive site I believe is down for maintenance at the moment.
Re:I bootstrapped my private-journaling project into a lifes... by sp332 on Tuesday June 25, 2019 @01:16PM (#20276483)
This site isn't the Internet Archive, which is down due to a fiber cut. https://mobile.twitter.com/internetarchive/
Re:I bootstrapped my private-journaling project into a lifes... by jdironman on Tuesday June 25, 2019 @01:18PM (#20276508)
Ah, thank you for the clarification.
[dead]
Re:I bootstrapped my private-journaling project into a lifes... by dang on Tuesday June 25, 2019 @01:43PM (#20276784)
Re:I bootstrapped my private-journaling project into a lifes... by a13n on Tuesday June 25, 2019 @01:48PM (#20276838)
Yes sir, sorry Dan.

Does saying a website doesn't work with JS disabled count as flamebait? This feels like a flamewar to me.

Re:I bootstrapped my private-journaling project into a lifes... by dang on Tuesday June 25, 2019 @02:35PM (#20277375)
People interpret these terms differently but you're at least in the right ballpark. At minimum it's a generic tangent, and those always lead to tedious, predictable discussions, and often flamewars. That's why the guidelines bundle the two:

"Eschew flamebait. Don't introduce flamewar topics unless you have something genuinely new to say. Avoid unrelated controversies and generic tangents."

Re:I bootstrapped my private-journaling project into a lifes... by komali2 on Tuesday June 25, 2019 @01:17PM (#20276493)
I understand why you feel justified in this tone, because it would be absurd to assume a web application could work without Javascript in 2019.

But like... a static blog post? Why bother with JS at all? It seems like creating more work that necessary, bloating downloads, increasing load speed, and for no reason blocking out people with JS disabled (so like, not just people using Firefox with plugins, but people that browse from emacs or whatever... which seems weird, except those are exactly the kind of people that are also technologists building 20k side projects). Also makes accessibility harder than necessary.

Re:I bootstrapped my private-journaling project into a lifes... by a13n on Tuesday June 25, 2019 @01:24PM (#20276574)
Indie Hackers is so much more than just a site with static content. There are user accounts and voting and commenting, just for starters.

The market of people who disable JS is minuscule and very likely not worth the effort to serve.

If you choose to disable a core web technology, then you should expect that many sites will not work for you.

Re:I bootstrapped my private-journaling project into a lifes... by RHSeeger on Tuesday June 25, 2019 @01:31PM (#20276659)
> If you choose to disable a core web technology, then you should expect that many sites will not work for you.

If you choose to disable a core web technology, then you should expect that many users will not work with you.

Re:I bootstrapped my private-journaling project into a lifes... by carlosdp on Tuesday June 25, 2019 @01:41PM (#20276763)
Part of the point before was that it's actually not many though...
Re:I bootstrapped my private-journaling project into a lifes... by beat on Tuesday June 25, 2019 @01:39PM (#20276748)
And since browsing the web via emacs is a huge market encompassing possibly upwards of .001% of all web traffic...
Re:I bootstrapped my private-journaling project into a lifes... by komali2 on Tuesday June 25, 2019 @01:59PM (#20276961)
Or more if we're talking about the slice of the market that are of the type to be interested in indie hacking projects... aka exactly the sort of people that want a editor they can hack on, or whatever.
Re:I bootstrapped my private-journaling project into a lifes... by beat on Tuesday June 25, 2019 @02:18PM (#20277170)
That makes it, what, .01%? I haven't read the web via emacs since the 1990s.
Re:I bootstrapped my private-journaling project into a lifes... by paulryanrogers on Tuesday June 25, 2019 @01:17PM (#20276490)
No need for the patronizing tone. Some block JS for the same reason others block ads: security and faster load times.

Is it really too much to ask for a single <NoScript> tag on the home page explaining what the service is and why JS is necessary?

Re:I bootstrapped my private-journaling project into a lifes... by dymk on Tuesday June 25, 2019 @01:25PM (#20276580)
Yeah, I think it's a bit much to ask every single website on the internet that uses JavaScript to add a tag for the incredibly small demographic that is NoScript users.
Re:I bootstrapped my private-journaling project into a lifes... by komali2 on Tuesday June 25, 2019 @01:29PM (#20276641)
https://gds.blog.gov.uk/2013/10/21/how-many-people-are-missi...

1%. Of all people.

Except... maybe your content is targeting exactly the kind of people to wander around the internet with Javascript disabled, and then they're suddenly a much larger slice of your potential audience. Writing articles on engineering, I imagine, already increases that slice. Anything related to security, I imagine another increase. People that participate in Indie Hacking Projects.... another big slice.

Anyway, why not just make it a part of that big ol blob of meta tags we all copy over to every index.html we write anyway? Including the magical bit of viewport meta to make pages look good on mobile?

Re:I bootstrapped my private-journaling project into a lifes... by tracker1 on Tuesday June 25, 2019 @01:32PM (#20276678)
I'm working on several applications that only support browsers with ES2017 (async) and above... That said, for mostly static content, there's very little excuse not to do server renders. I mean this stuff isn't new, and dynamic bits can be attached after render. Hell, most of the interaction beyond the text content I'd be fine with.

One thing that REALLY bugs me, is blocking usage of analytics systems that you cannot access a site without it. Makes the site unusable if the analytics are blocked or otherwise fail to load. I keep JS on, but will be damned if I shut of uBlock.