Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If anything they should make it so that when you click "show more" it adds the next page to the current page instead of redirecting you to another page.


This is what reddit does, but that has its own problems: How do I ctrl+f the whole content? What if I refresh? What if I don't have JS? I haven't seen an elegant solution yet.


I guess that the noscript behaviour should be to present the "More" link and let the user click it to load a new page. Exactly what we have now.

The JS in the page should attach an event to the link to append the new page at the bottom. Better: it should do it automatically when the scroll position is close enough to the end.

Bonus: the script should add a search box to search even in the content not yet in the page.

I googled if it's possible to intercept CTRL-F and handle it programmatically. It seems it is [1] but I don't know if I would do it: the user could be surprised to find a search box in a non standard position with a non standard behaviour. It reminds me of scrollbar hijacking.

[1] http://stackoverflow.com/questions/9159322/overriding-the-br...


This opinion is never popular because for some reason developers seem to be dead afraid of asking their user's output.

What I would do is add a dialog the first time the user press CTRL+F. Asks if the user wants the default or the override. Save this in a cookie or in the database.


"ctrl-f" was overly literal, I simply meant "a way to search the content of all the comments."

A simple (non-JS) "Search these comments" form would suffice, but I've never seen it implemented.


Alternatively, you could load all the threads when responding to ctrl+F for the first time on a page and just leave the browser default find UX alone.


This 100%, or just put it all on one page. It's just text, so I really don't see why the change was necessary. I didn't notice it until yesterday until the CIA thread but it's really annoying.


That would require javascript, don't they try to avoid that?


Simply make it so that when JS isn't being used by the link acts normally.

You have two option with the web. Either you put your logic in the backend or in the frontend.

This addition is obliviously to reduce the load on the server. So either you add some logic on the frontend to make the user experience good or you do like they do right now and have a bad user experience.


No JS needed. You can do this with CSS using the target selector and display:none. But that would require loading all comments up front which is maybe what they're trying to avoid?


Not really, you could just load the same page with something like ?comments=all from the server.


That seems better actually, considering "more" doesn't really make sense when the things you've already gotten may have shifted in the mean time.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: