[webkit-gtk] Displaying very long HTML documents (books), etc.
Sim Tov
smntov at gmail.com
Wed Feb 7 05:54:40 PST 2024
Thank you for the fast response, Michael!
1. What is the maximal HTML document size that still can be displayed
smoothly?
2. Is there a hard limit enforced by WebkitGT
3. Are you aware of any apps implementing the two features mentioned in the
previous email (so I can look for examples/ideas there)?
Thank you again!
On Wed, Feb 7, 2024 at 3:48 PM Michael Catanzaro <mcatanzaro at redhat.com>
wrote:
> On Wed, Feb 7 2024 at 03:31:29 PM +02:00:00, Sim Tov <smntov at gmail.com>
> wrote:
> > 1. The target documents might be very long - books. Does WebkitGTK
> > know how to deal with this? Can it load/unload dynamically certain
> > portions of the HTML document in order to hold in memory only what's
> > visible (in order not to collapse/stay responsive)? Probably a
> > similar mechanism is used when dealing with webpages with "infinite"
> > scrolling...
>
> Nope. You'll have to handle that yourself.
>
> > 2. The source file will be displayed in GtkSourceView. Is there a way
> > to implement synchronized scrolling, i.e. when the user scrolls the
> > source in GtkSourceView the rendered document will scroll accordingly
> > inside WebkitGTK (and vise versa)? It's probably also important to
> > implement bookmarks, i.e. save the place where the reader left
> > reading and closed the app, so it can be focused on that same spot on
> > the next app launch.
>
> I'm sure it's all possible, but it will have to be done manually. Good
> luck. :)
>
> Michael
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20240207/3bf42b0a/attachment.htm>
More information about the webkit-gtk
mailing list