-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Consider officially supporting the Dillo browser #714
Comments
@rodarina I'm afraid that we can not guaranty that any ZIM and Kiwix Server feature works without Javassript engine. But maybe I didn't understand properly what you requested. |
You already provide a non-JS based implementation of all important features. The only problem is that it cannot be queried from a non-JS page. This simple HTML page: <!DOCTYPE html>
<html>
<head><title>Search kiwix</title></head>
<body>
<p>Search for a page in all Kiwix catalogs:</p>
<form action="http://localhost:8080/search">
<input type="text" name="pattern" placeholder="Term...">
<input type="submit" value="Search"/>
</form>
</body>
</html> Shows a simple search bar on Dillo (and any other browser): And allows me to search pages that match a particular term, for example GPU in the Arch Wiki: Without having executed a single line of JS. What I'm asking is that you provide a plain HTML interface to all (or at least the essential) functionality that kiwix-serve currently provides via JS, so it can be used by Dillo. You can just add a similar search form to the /nojs endpoint, so we can perform searches of content (not searches of elements of the catalog as we have now). Probably you can add a By officially supporting Dillo I mean that you don't introduce a dependency over JS to perform a task that could be done without it and ensure we can continue to use Dillo (or any other simple web browser) to browse, search an read Kiwix pages. |
Which part do you mean exactly?! It seems the "nojs" feature is not documented at all there!?
OK, so basically want to be able to make fulltext searches in articles without relying on js? |
@kelson42 the thing is that the Maybe we should add a new nojs-friendly wrapper (still using an iframe) that shows a toolbar with links to Home, Random and a form input for search and suggestions. Either we remove suggestion completely (then it's very easy to implement) or we add a toggle/tick box to select whether requesting a full-text search or a title-search and add a new HTML output for the title-based search (suggestions). I think it's important to provide those features as long as we support the |
This is actually a key question. To me there is "no" official support of this feature. This mean that this is nice to have and does not belong to the official feature set. Concretly this would mean that if a volunteer wants to develop it, his work will be supported, but nothing more. |
Disclaimer: I maintain the Dillo graphical web browser.
I think Kiwix should work on old and low resource computers. Currently, the kiwix-desktop requires Qt WebEngine, which is implemented on top of Chromium on most platforms. This raises the requirements to load mostly text with images websites, and it is in my opinion an unnecessary requirement in most cases.
The kiwix-tools allow you to serve the documents as a HTTP server, so we can choose a more lightweight web broser and avoid the dependency on Chromium. Dillo is a graphical web browser that runs on very old and constrained machines, but it doesn't support Javascript. It can render HTML pages mostly fine, but there is one important feature that doesn't work: searching for content. Here is an example of the Arch wiki:
And here is the comparison in memory consumption from Dillo to the official Kiwix desktop program as seen by the top program (memory numbers are in KiB):
You can see that Dillo uses 27 MiB of resident memory (RES), while kiwix-desptop requires 330 MiB to load the same page. Even if you combine kiwix-serve + Dillo, it only reaches 1/4 of the memory usage of kiwix-desktop, but the server can be offloaded to another machine if needed.
By just implementing a simple mechanism to search for content without JS you'll implement all basic functionality and allow users of older machines to use Kiwix on Dillo (and probably other non-JS browsers too). See #634.
I would kindly ask you to consider adding Dillo as an officially supported browser for kiwix-serve, so you ensure that users can use Kiwix without having to load a full Chromium browser. Searching is the only main feature missing I can see so far.
The text was updated successfully, but these errors were encountered: