Note that there are some explanatory texts on larger screens.

plurals
  1. POWebkit GTK: Determine when a document is finished loading
    primarykey
    data
    text
    <p>There are other questions on StackOverflow which are <em>close</em> to what I want to know, like <a href="https://stackoverflow.com/questions/5724088/webkit-gtk-how-to-detect-when-a-download-has-finished">Webkit GTK :: How to detect when a download has finished?</a>, but I think I'm asking something a bit different:</p> <p>In general, in the event-driven C Webkit-GTK API there are a lot of events which may relate to the idea of when some document is finished "loading". The problem is the <a href="http://webkitgtk.org/reference/webkitgtk/stable/webkitgtk-webkitwebview.html" rel="nofollow noreferrer">documentation</a> is pretty sparse, and the idea of "finished loading" isn't necessarily clear, because it can refer to a lot of things. Does "finished loading" mean that the document is finished <em>downloading</em>? That it's finished creating the DOM tree? That it's finished downloading including <em>all</em> other resources (like CSS, JS and image files?)</p> <p>Relevant signals are <code>signal::notify::load-status</code>, <code>document-load-finished</code>, and <code>resource-load-finished</code>. </p> <p>The <code>load-status</code> signal fires everytime the load status changes, so you need to manually call <code>webkit_web_view_get_load_status</code> and check the status each time. Even so, when the status finally is <code>WEBKIT_LOAD_FINISHED</code>, I'm not sure what that means - does it mean WebKit is done <em>downloading</em> the resource, or that it's finished creating the DOM tree, or what?</p> <p>Question: </p> <p>What is the difference between the various "finished" signals, and is there any signal that is equivalent to the standard Javascript DOM event <code>window.onload</code>? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload