-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaScript free #9
Comments
I don't think so. I guess that most of the searx (end) users do not know how to disable Javascript in their browsers ... BTW nowadays it is hard to develop modern clients without JS .. we had the same discussion at the linux kernel development in 2016 when we converted the linux kernel documentation to the reST format. From the linux community only one votes for a non javascript solution .. but no one gives any contribution and at the end, this requirements dies. To be clear; I prefer CSS solutions over JS, if I can avoid JS, I don't use JS .. but we should realistic and focus more on projects progress: searx-stats2 is a diagnostic toll, sooner or later we will appreciate the little JS helpers by sorting and/or filtering the results in the client gui. |
The amount of users in the Searx community that disable JavaScript is quite superior to the overall amount of Internet users. Currently, searx-stats2 can be completely converted to a JavaScript free website. The results just need to be rendered on server side (like the actual stats.searx.xyz), the ability to filter is possible in pure CSS: https://nddt-webdevelopment.de/html-css/filter-html-table-without-javascript-just-css, sorting needs to be done in server side and finally the tooltip that is displayed when the user moves the mouse over an element is also possible in pure CSS: https://www.w3schools.com/css/css_tooltip.asp If removing JavaScript is possible why not doing it? It just feels snappier, follow the same philosophy as Searx, make happy a part of the Privacy oriented community and reduce the amount of possible alteration of the searx-stats2 content because the policy |
I will try to sum up my view point:
Then there is this question : what are the user stories about this project ? |
Server side rendering is a good idea, at least having a page with the results (like the actual stats.searx.xyz) and if the visitor wants to sort/filter he will have to enable JS (a message is displayed to let it him know about that). |
This solution fits for both ... but also adds a lot of work & test. If someone is willing to take on this work, then it seems the best solution. |
Disclamer: I'm not a front dev, I'm may be wrong. After investigation:
So:
|
@unixfox, I disagree with any change that'll remove or degrade functionality or performance for privacy. I just use SearX because its ability to provide results from different search engines is brilliant. Those worried by that are usually able to self-host it themselves, anyway. I'm all for JS if it makes development easier and the product better. |
Reading this issue, I think this is something I wouldn't mind trying to address as a project. Ideally, there should exist a non-JS enabled version of the site. My high-level plan of action would be what has already been mentioned - focus on server side rendering, then work with JS after a strong default has been completed. |
Also, the |
@glanham-jr how do you want to implement that ? pre-rendered static pages ? a Python web server ? something else ? |
I was going create a separate discussion on different possibilities - but I can do so in this thread. I would believe that going with a Django Python server with server side rendered pages keeps the most flexibility. With that, I'd like to try to use django-distill which will let us generate a static site with some additional configuration. If we realize that the static site is not the way to go for some new features, we can strip it out and we still have the project set up for creating pages on the fly. |
I've opened the discussion for this project. |
Moved conversation to the following discussion: #196 |
A JavaScript free version of the website would be great because in the Searx community it's pretty common to have users that doesn't enable JavaScript by default.
Moreover, Searx itself support searches without having JavaScript enabled and stats.searx.xyz display its results without having JavaScript enabled.
The text was updated successfully, but these errors were encountered: