272
edits
| Line 96: | Line 96: | ||
Load events record a document being loaded into a DOM Window. | Load events record a document being loaded into a DOM Window. | ||
Element | ; Element <tt><load></tt> | ||
: ''Attributes:'' | |||
Attributes: | :; <tt>window = [integer]</tt> | ||
<tt>window = [integer | :: The id of the window where the document was loaded. | ||
:; <tt>origin = [string]</tt> (optional) | |||
The id of the window where the document was loaded. | :: The action which initiated the load. Possible values include: | ||
::* <tt>typed</tt>: The document URI was typed (or pasted) by the user. | |||
<tt>origin = [string]</tt> (optional) | ::* <tt>link</tt>: The user followed a link to the document URI. | ||
::* <tt>session-history</tt>: The user used back/forward navigation to load the document. | |||
The action which initiated the load. Possible values include: | ::* <tt>reload</tt>: The user used the reload button or keyboard shortcut to reload the document. | ||
* | ::* <tt>global-history</tt>: The user loaded the page by selecting it from their global history. | ||
* | ::* <tt>bookmark</tt>: The user loaded the page by selecting it from the bookmarks menu, bookmarks toolbar, or bookmarks management UI. | ||
* | ::* <tt>script</tt>: A script executing on a page loaded the document. | ||
* | ::* <tt>refresh</tt>: A meta-refresh loaded the document. | ||
* | ::* <tt>external</tt>: The document URI was passed in from an external application. | ||
* | :; <tt>loadtime = [integer]</tt> | ||
* | :: The time from the initiation of the load until the document is complete (which includes all images, stylesheet, etc) in milliseconds. | ||
* | :; <tt>bfCacheHit = [boolean]</tt> (optional) | ||
* | :: Whether the document presentation was loaded from the session history cache. If not specified, assumed to be false. | ||
<tt>loadtime = [ | |||
The time from the initiation of the load until the document is complete (which includes all images, stylesheet, etc) in milliseconds. | |||
<tt>bfCacheHit = [boolean]</tt> (optional) | |||
Whether the document presentation was loaded from the session history cache. If not specified, assumed to be false. | |||
Todo / possible todo items: | Todo / possible todo items: | ||
* | * cache size before/after load | ||
* | * content viewer size estimate | ||
* | * cache hit | ||
* | * session history index | ||
* | * last visit date | ||
* | * tagged/bookmarked | ||
===UI Event=== | ===UI Event=== | ||
edits