Skip to content

Using litehtml as the html viewer #1595

Description

@Waqar144

Currently zeal uses Qt WebEngine for showing the documentation. While it is great, it is also a huge dependency and effectively makes the app more or less equivalent to an electron app. I think litehtml is a library that can be used instead of Qt WebEngine, which is a lightweight html renderer.

Advantages:

  • Small dependency
  • Lower memory usage

Disadvatages

  • No javascript and no dynamic content (perhaps its an advantage).
  • haven't benchmarked, but seems a bit slower e.g., it takes 2s to load the documentation for QString on my laptop with AMD4700U/16G while it is plugged in + high perf profile

Switching wont be a huge effort. I have a wip branch that can be used to try it out. I have only tested it with Qt documentation. If there are documentations that need javascript to work correctly then probably the switch can't be made.

Metadata

Metadata

Assignees

No one assigned

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions