Skip to main content

script/dom/performance/
mod.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5pub(crate) mod largestcontentfulpaint;
6#[allow(clippy::module_inception, reason = "The interface name is Performance")]
7pub(crate) mod performance;
8pub(crate) mod performanceentry;
9pub(crate) mod performancemark;
10pub(crate) mod performancemeasure;
11pub(crate) mod performancenavigation;
12pub(crate) mod performancenavigationtiming;
13pub(crate) mod performanceobserver;
14pub(crate) mod performanceobserverentrylist;
15pub(crate) mod performancepainttiming;
16pub(crate) mod performanceresourcetiming;
17pub(crate) use self::performance::Performance;
18
19/// <https://w3c.github.io/navigation-timing/#the-performancetiming-interface>
20///
21/// Note: This interface is obselete and use of name is supported to remain backwards compatible.
22pub(crate) const PERFORMANCE_TIMING_ATTRIBUTES: &[&str] = &[
23    "navigationStart",
24    "unloadEventStart",
25    "unloadEventEnd",
26    "redirectStart",
27    "redirectEnd",
28    "fetchStart",
29    "domainLookupStart",
30    "domainLookupEnd",
31    "connectStart",
32    "connectEnd",
33    "secureConnectionStart",
34    "requestStart",
35    "responseStart",
36    "responseEnd",
37    "domLoading",
38    "domInteractive",
39    "domContentLoadedEventStart",
40    "domContentLoadedEventEnd",
41    "domComplete",
42    "loadEventStart",
43    "loadEventEnd",
44];