Live data from Hacker News

Please disable JavaScript to view this site

heydonworks.com

211–220 of 281 posts

Re: Please disable JavaScript to view this site

#211
post #158
post #147

I’d love to get rid of JS for my personal sites, but I know of no clean and simple way to render dynamic content otherwise. Server-side rendering seems a bit messy. I want a clean REST API separate from the UI. How can I generate pages with dynamic content easily? Ideally with absolute minimal dependencies.

Check out next.js. You can write vanilla React basically but fetch the props from an API prior to rendering on the server.

How is that not JS?

Re: Please disable JavaScript to view this site

#212

Earlier quoted context omitted.

Or maybe I need to try uBlock again rather than assuming my Pihole is as good as it gets. Thanks for the suggestion.

Of course it isn't. Pihole and similar DNS-based blockers do nothing for those kinds of spam which require performing DOM manipulations to be removed. Check uBlock settings after installing it. It has a separate "annoyances" list. I enabled everything in it a few years ago and never had a single problem. It removes all the GDPR banners, "please give us your email" popups, useless "oh I am so original" plates in forum…

I wasn't aware of this option in settings. Thanks.

Re: Please disable JavaScript to view this site

#213
post #162

Earlier quoted context omitted.

Geico is a BH company. https://www.berkshirehathaway.com/subs/sublinks.html

Right, still a little odd to have... > FOR A FREE CAR INSURANCE RATE QUOTE THAT COULD SAVE YOU SUBSTANTIAL MONEY WWW.GEICO.COM OR CALL 1-888-395-6349, 24 HOURS A DAY ...on the homepage of a quarter-trillion dollar company, with no other ads.

The website is really old in the early days of the web this was normal as you didn’t have the ability to check for these things via google.

Re: Please disable JavaScript to view this site

#216

I must say, I don't understand the disable JS movement. I browse with JS on, and uBlock Origin to block ads. It's rare that I have any javascript-related problems in my web browsing. On the other hand, I definitely use a number of sites that rely on javascript for useful purposes. If you're worried about tracking, you can block ads and tracking scripts without disabling javascript. If you're worried about viruses, we…

On a great many web sites I have to spend the first 60 seconds on the site clicking on "X" boxes in popups to make them go away. In many cases there are actually several layers of popups obscuring the content, and some are delayed so they only pop up after you start reading the content. No I do not want to subscribe to your mailing list. No I don't want to take your survey. No I do not want to "chat" with your bot-pr…

>In many cases there are actually several layers of popups obscuring the content, and some are delayed so they only pop up after you start reading the content.

I swear I've had ones that popup as I move the mouse to close the tab.

Re: Please disable JavaScript to view this site

#217
I must say I had to look for how to disable JS in Firefox + uBlock.

As someone pointed out, there's a button on uBlock to disable it.

I didn't quite spend so much time on Firefox preferences but I didn't find the option. I'm sure it's there somewhere

You can open developer console, go into it's settings and look for Disable Javascript. Checking the box will disable JS and reload the page.

Re: Please disable JavaScript to view this site

#218
post #147

I’d love to get rid of JS for my personal sites, but I know of no clean and simple way to render dynamic content otherwise. Server-side rendering seems a bit messy. I want a clean REST API separate from the UI. How can I generate pages with dynamic content easily? Ideally with absolute minimal dependencies.

How is server-side rendering messy? It's just putting html strings together based on data, no frameworks or libraries needed.

That's what I mean. It feels much messier than JSX, where "putting strings together" is a clean first-class citizen.

With SSR, you need some component that's aware of every change, and that triggers those re-renders at sensible times (every render takes server resources). This all feels messy, compared to rendering just-in-time on the client-side.

Re: Please disable JavaScript to view this site

#219

Earlier quoted context omitted.

It's also written in Rust for performance.

I use a 6 year old desktop which wasn't that great even when I built it, and a pretty terrible 8 year old laptop, and I don't have any problems with uBlock Origin's performance. I have almost every filter list enabled (except for some regional ones), which results in 153486 network and 173646 cosmetic filters total.

Same here. My take away from these replies is that I'm not missing anything by sticking with uBlock.

Re: Please disable JavaScript to view this site

#220

Earlier quoted context omitted.

I use a 6 year old desktop which wasn't that great even when I built it, and a pretty terrible 8 year old laptop, and I don't have any problems with uBlock Origin's performance. I have almost every filter list enabled (except for some regional ones), which results in 153486 network and 173646 cosmetic filters total.

Same here. My take away from these replies is that I'm not missing anything by sticking with uBlock.

With uBlock origin you're at the whim of the changes Google pushes through to chrome/chromium to nerf it.
Post reply on HN