News for hackers. Stuff that matters.
Re:The Cost of JavaScript in 2019 by AlchemistCamp on Sunday June 30, 2019 @04:23PM (#20320284)
With their redesign and a few other choices, Reddit has gone from one of the most beautiful places on the web to the second most hostile UX that I put up with.

I don't want to "GET NEW REDDIT" as I'm urged to in the top left of every page because I don't want a card-based layout. The whole reason I and so many others left Digg for Reddit to begin with was for a highly skimmable, information-dense site!

Similarly, I don't want to install a mobile app. The page worked fine on mobile when I got my first iPod Touch a decade ago. Why do I have to see a huge USE APP button in the nav bar and then lose another 20% of the page at the bottom to a See Reddit In section at the bottom that's also urging me to install a native app?

Infinite scroll actually slows down my browsing experience too, since it no longer loads as many entries at a time and I have to keep waiting for pagination.

Re:The Cost of JavaScript in 2019 by bromuro on Sunday June 30, 2019 @06:39PM (#20321019)
How are Reddit’s marketing choices related to this article?
Re:The Cost of JavaScript in 2019 by nine_k on Sunday June 30, 2019 @08:06PM (#20321415)
Skimmable design → shorter time and smaller space for ads → less ad revenue.

I wish Reddit ran something like Youtube Premium, a paid ad-free experience with actually comfortable layout.

Re:The Cost of JavaScript in 2019 by TheAceOfHearts on Sunday June 30, 2019 @11:17PM (#20322206)
You can buy reddit premium so you no longer get ads. It's absolutely bullshit how much stuff they still track, though.
Re:The Cost of JavaScript in 2019 by alyandon on Monday July 01, 2019 @01:47PM (#20327859)
They lost me as a premium subscriber because they no longer offer a discounted annual subscription plan and instead expect me to pay $6/mo ($72/yr) for ad-free access to a site that is comprised of user-generated content. That's more than the subscription price of some actual news sites.
Re:The Cost of JavaScript in 2019 by Arbalest on Sunday June 30, 2019 @08:17PM (#20321469)
If something is going to be ad free, it had better also be tracking free.
Re:The Cost of JavaScript in 2019 by jmkni on Monday July 01, 2019 @08:37AM (#20324636)
The article uses Reddit's Javascript execution times as an example
Re:The Cost of JavaScript in 2019 by NullPrefix on Sunday June 30, 2019 @07:23PM (#20321236)
JavaScript. They use too much of it.
Re:The Cost of JavaScript in 2019 by threeseed on Sunday June 30, 2019 @07:30PM (#20321268)
Javascript has nothing to do with those decisions. It is purely design.
Re:The Cost of JavaScript in 2019 by AlchemistCamp on Sunday June 30, 2019 @07:56PM (#20321368)
> Javascript has nothing to do with those decisions. It is purely design.

How do you implement infinite scroll without JavaScript?

The theme tying all their choices together is costs they're willing to inflict upon their users. Bloated JS payloads are simply one example.

Re:The Cost of JavaScript in 2019 by NullPrefix on Sunday June 30, 2019 @08:36PM (#20321531)
> How do you implement infinite scroll without JavaScript?

Technically it's possible.

Render the website server side as an image. Chrome 75+ supports native lazy loading of images, so a series of them stacked vertically is needed. Each image represents a new page, scroll through them to navigate. Click detection can be done with a <map> tag.

Re:The Cost of JavaScript in 2019 by furyofantares on Sunday June 30, 2019 @09:27PM (#20321759)
I think you can also just keep sending html. Send a page with page2.png at the bottom and keep the connection open. This is a sentinel image to detect scrolling — when page2.png is requested, use this as a command to tell the server to start sending html for page 2 on the original connection, which would have page3.png at the bottom.
Re:The Cost of JavaScript in 2019 by NullPrefix on Monday July 01, 2019 @06:10AM (#20323931)
This is even simpler. Forgot that HTML can be executed while loading.
Re:The Cost of JavaScript in 2019 by orange8 on Sunday June 30, 2019 @09:41PM (#20321816)
JavaScript is now a marketing choice? Wow!
Re:The Cost of JavaScript in 2019 by NullPrefix on Monday July 01, 2019 @04:59AM (#20323599)
Can you even?
Re:The Cost of JavaScript in 2019 by DoingIsLearning on Sunday June 30, 2019 @05:18PM (#20320581)
For desktop

old.reddit.com

or for mobile

reddit.com/.compact

Both are low nuissance and both still work for me, although I am not sure if that is region based.

Re:The Cost of JavaScript in 2019 by AlchemistCamp on Sunday June 30, 2019 @06:03PM (#20320839)
> old.reddit.com

It doesn't put a big red "GET NEW REDDIT" in the upper left that does a single-click update of your account settings? What region are you in?

> reddit.com/.compact

I just tried that and the top 40% of my screen was spent on a banner telling me, "You've been invited to try out Reddit's new mobile website!" Clicking that lead me to a page where both the top bar and the bottom section harass me to install their mobile app.

Re:The Cost of JavaScript in 2019 by rcfox on Sunday June 30, 2019 @08:21PM (#20321483)
I use a uBlock Origin rule to hide the upper-left button.
Re:The Cost of JavaScript in 2019 by DoingIsLearning on Monday July 01, 2019 @01:35AM (#20322705)
Indeed I overlooked the fact that I am also using ff+ublock.
Re:The Cost of JavaScript in 2019 by karmakaze on Sunday June 30, 2019 @06:30PM (#20320985)
> reddit.com/.compact

Desktop site [x]

Re:The Cost of JavaScript in 2019 by johnzim on Sunday June 30, 2019 @06:14PM (#20320902)
I'd also recommend Apollo if you're on iOS and are happy using an App to get your reddit fix.

Fast, reliable and well designed. I really enjoy using it.

https://apolloapp.io

Re:The Cost of JavaScript in 2019 by kaivi on Sunday June 30, 2019 @06:31PM (#20320992)
I second this, it's a decent app! Only wish they would stop obsessing over new icons and fixed bugs instead.
Re:The Cost of JavaScript in 2019 by rb666 on Monday July 01, 2019 @05:23AM (#20323702)
Thirded, this app is great and fixes all my problems with Reddit on mobile.
Re:The Cost of JavaScript in 2019 by fhsm on Sunday June 30, 2019 @08:40PM (#20321548)
.compact is a major improvement. Not as good as text.npr.org or lite.cnn.com, but a major improvement. Thanks!
Re:The Cost of JavaScript in 2019 by Bekwnn on Sunday June 30, 2019 @07:50PM (#20321348)
Firefox and Chrome both have old reddit redirect addons that mean you never wind up seeing new reddit again.
Re:The Cost of JavaScript in 2019 by PopeDotNinja on Sunday June 30, 2019 @06:00PM (#20320829)
> or for mobile

> reddit.com/.compact

I didn't know about that option. Bookmarked. Thanks for sharing!

Re:The Cost of JavaScript in 2019 by kiddico on Sunday June 30, 2019 @06:40PM (#20321025)
Alternatively set your account to use the old style, and then adblock-away the banner ad to switch to the new style.
Re:The Cost of JavaScript in 2019 by bluedino on Sunday June 30, 2019 @08:37PM (#20321532)
i.reddit.com
Re:The Cost of JavaScript in 2019 by zinfour on Sunday June 30, 2019 @04:50PM (#20320419)
Regarding card-based layout on the new reddit, you can change from card based layout in the top left corner on the new site.
Re:The Cost of JavaScript in 2019 by karmakaze on Sunday June 30, 2019 @06:33PM (#20320999)
Sweet! The compact view is even better than old.reddit
Re:The Cost of JavaScript in 2019 by OrgNet on Sunday June 30, 2019 @04:51PM (#20320430)
I use https://ns.reddit.com along with Firefox's Redirector add-on to make sure that I always stay on that domain... not sure how much longer it will stay around though
Re:The Cost of JavaScript in 2019 by windsurfer on Sunday June 30, 2019 @05:23PM (#20320609)
https://old.reddit.com is the "official" version of that, I believe. Here's a pretty popular redirector extension to go to that: https://addons.mozilla.org/en-US/firefox/addon/old-reddit-re...
Re:The Cost of JavaScript in 2019 by epidemian on Monday July 01, 2019 @10:15AM (#20325422)
Completely agree. I use this extension to always redirect to the "old." reddit design:

https://addons.mozilla.org/en-US/firefox/addon/old-reddit-re...

The slowdown of the new design is really noticeable whenever I visit reddit on another browser or computer.

Re:The Cost of JavaScript in 2019 by InafuSabi on Monday July 01, 2019 @09:06AM (#20324843)
https://old.reddit.com is the only way to look at that site.

Reddit new style also eats way more cpu cycles than needed, which is very important when you visit the site on potato hardware

Re:The Cost of JavaScript in 2019 by kristopolous on Sunday June 30, 2019 @08:50PM (#20321597)
You can remove the nagware in your preferences on Reddit. Still unacceptable but it's there
Re:The Cost of JavaScript in 2019 by thekingshorses on Sunday June 30, 2019 @07:26PM (#20321249)
https://reddit.premii.com/ - Works in the browser including incognito for your NSFW needs. No Ads.
Re:The Cost of JavaScript in 2019 by stevenjohns on Sunday June 30, 2019 @07:39PM (#20321308)
> Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.reddit.com/r/all/best.json. (Reason: CORS request did not succeed).

> The resource at “https://www.reddit.com/r/all/best.json” was blocked because content blocking is enabled.

When I try to go to that URL in latest Firefox on MacOS.

Re:The Cost of JavaScript in 2019 by andrepd on Monday July 01, 2019 @09:45AM (#20325159)
Re mobile: use i.reddit.com. Have been using it for 8 years now!
Re:The Cost of JavaScript in 2019 by dzhiurgis on Monday July 01, 2019 @04:28AM (#20323462)
Reddit in 2019 === Facebook of 2010
Re:The Cost of JavaScript in 2019 by nothis on Sunday June 30, 2019 @07:07PM (#20321152)
Check out tildes.net
Re:The Cost of JavaScript in 2019 by lunchables on Monday July 01, 2019 @08:56AM (#20324760)
Apparently it's invite-only alpha, but it is beautiful. Any idea when it will be open for general registration?
Re:The Cost of JavaScript in 2019 by Deimorz on Monday July 01, 2019 @04:50PM (#20329607)
(Tildes is my site)

I don't have any specific plans about opening the registration up yet, but you (or anyone else) can just email me for an invite. It's not intended to be difficult to get one, I just want to keep the site's growth under control.

The address to email (and a lot more info about the site's goals) are in the announcement post: https://blog.tildes.net/announcing-tildes