-
Notifications
You must be signed in to change notification settings - Fork 0
/
ResourceEventType.hx
68 lines (51 loc) · 1.94 KB
/
ResourceEventType.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package eventtypes;
enum abstract ResourceEventType(String) to String {
/**
The cached event is fired when the resources listed in the application
cache manifest have been downloaded, and the application is now cached.
See https://developer.mozilla.org/en-US/docs/Web/Events/cached
*/
var Cached = 'cached';
/**
A resource failed to load.
See https://developer.mozilla.org/en-US/docs/Web/Events/error
*/
var Error = 'error';
/**
The loading of a resource has been aborted.
See https://developer.mozilla.org/en-US/docs/Web/Events/abort
*/
var Abort = 'abort';
/**
A resource and its dependent resources have finished loading.
See https://developer.mozilla.org/en-US/docs/Web/Events/load
*/
var Load = 'load';
/**
The beforeunload event is fired when the window, the document and its
resources are about to be unloaded. The document is still visible and
the event is still cancelable at this point.
If a string is assigned to the returnValue Event property, a dialog
appears asking the user for confirmation to leave the page (see example
below). Some browsers display the returned string in the dialog box,
but others display their own message. If no value is provided, the
event is processed silently.
See https://developer.mozilla.org/en-US/docs/Web/Events/beforeunload
*/
var BeforeUnload = 'beforeunload';
/**
The document or a dependent resource is being unloaded.
It is fired after:
beforeunload (cancellable event)
pagehide
The document is in a particular state:
All the resources still exist (img, iframe etc.)
Nothing is visible anymore to the end user
UI interactions are ineffective (window.open, alert, confirm, etc.)
An error won't stop the unloading workflow
Please note that the unload event also follows the document tree:
parent frame unload will happen before child frame unload.
See https://developer.mozilla.org/en-US/docs/Web/Events/unload
*/
var Unload = 'unload';
}