navigation-timing.idl (3357B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Navigation Timing Level 2 (https://w3c.github.io/navigation-timing/) 5 6 [Exposed=Window] 7 interface PerformanceNavigationTiming : PerformanceResourceTiming { 8 readonly attribute DOMHighResTimeStamp unloadEventStart; 9 readonly attribute DOMHighResTimeStamp unloadEventEnd; 10 readonly attribute DOMHighResTimeStamp domInteractive; 11 readonly attribute DOMHighResTimeStamp domContentLoadedEventStart; 12 readonly attribute DOMHighResTimeStamp domContentLoadedEventEnd; 13 readonly attribute DOMHighResTimeStamp domComplete; 14 readonly attribute DOMHighResTimeStamp loadEventStart; 15 readonly attribute DOMHighResTimeStamp loadEventEnd; 16 readonly attribute NavigationTimingType type; 17 readonly attribute unsigned short redirectCount; 18 readonly attribute DOMHighResTimeStamp criticalCHRestart; 19 readonly attribute NotRestoredReasons? notRestoredReasons; 20 readonly attribute PerformanceTimingConfidence confidence; 21 [Default] object toJSON(); 22 }; 23 24 enum NavigationTimingType { 25 "navigate", 26 "reload", 27 "back_forward" 28 }; 29 30 [Exposed=Window] 31 interface PerformanceTimingConfidence { 32 readonly attribute double randomizedTriggerRate; 33 readonly attribute PerformanceTimingConfidenceValue value; 34 object toJSON(); 35 }; 36 37 enum PerformanceTimingConfidenceValue { 38 "high", 39 "low" 40 }; 41 42 [Exposed=Window] 43 interface PerformanceTiming { 44 readonly attribute unsigned long long navigationStart; 45 readonly attribute unsigned long long unloadEventStart; 46 readonly attribute unsigned long long unloadEventEnd; 47 readonly attribute unsigned long long redirectStart; 48 readonly attribute unsigned long long redirectEnd; 49 readonly attribute unsigned long long fetchStart; 50 readonly attribute unsigned long long domainLookupStart; 51 readonly attribute unsigned long long domainLookupEnd; 52 readonly attribute unsigned long long connectStart; 53 readonly attribute unsigned long long connectEnd; 54 readonly attribute unsigned long long secureConnectionStart; 55 readonly attribute unsigned long long requestStart; 56 readonly attribute unsigned long long responseStart; 57 readonly attribute unsigned long long responseEnd; 58 readonly attribute unsigned long long domLoading; 59 readonly attribute unsigned long long domInteractive; 60 readonly attribute unsigned long long domContentLoadedEventStart; 61 readonly attribute unsigned long long domContentLoadedEventEnd; 62 readonly attribute unsigned long long domComplete; 63 readonly attribute unsigned long long loadEventStart; 64 readonly attribute unsigned long long loadEventEnd; 65 [Default] object toJSON(); 66 }; 67 68 [Exposed=Window] 69 interface PerformanceNavigation { 70 const unsigned short TYPE_NAVIGATE = 0; 71 const unsigned short TYPE_RELOAD = 1; 72 const unsigned short TYPE_BACK_FORWARD = 2; 73 const unsigned short TYPE_RESERVED = 255; 74 readonly attribute unsigned short type; 75 readonly attribute unsigned short redirectCount; 76 [Default] object toJSON(); 77 }; 78 79 [Exposed=Window] 80 partial interface Performance { 81 [SameObject] 82 readonly attribute PerformanceTiming timing; 83 [SameObject] 84 readonly attribute PerformanceNavigation navigation; 85 };