News for hackers. Stuff that matters.
Re:DuckDuckGo – two non-JavaScript versions of search results by kube-system on Friday March 05, 2021 @09:32AM (#26357233)
What if the page gets part of its content from JS, or it uses JS to facilitate users actions? This is fairly common.
Re:DuckDuckGo – two non-JavaScript versions of search results by kevincox on Friday March 05, 2021 @09:46AM (#26357358)
If resources were no concern you could rank the page twice and have separate JS and no-JS indexes. Of course this isn't perfect as a lot of the ranking comes from pages referring to it but I think it is fine. If the page has a good chunk of content it likely still makes sense to include it in no-JS searches. I don't think people will be annoyed that they can't do every action on the page, the real annoyance is getting a blank screen or the main content otherwise unavailable.

So at the end of the day I think just having a js-required flag for each document is sufficient and set that flag if the "main content" (as determined by heuristics) is unavailable before running JS. I think that would be good enough to satisfy most users with JS disabled without too much expense.