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) mod performancetiming;
18pub(crate) use self::performance::Performance;
19
20/// <https://w3c.github.io/navigation-timing/#the-performancetiming-interface>
21///
22/// Note: This interface is obselete and use of name is supported to remain backwards compatible.
23pub(crate) const PERFORMANCE_TIMING_ATTRIBUTES: &[&str] = &[
24    "navigationStart",
25    "unloadEventStart",
26    "unloadEventEnd",
27    "redirectStart",
28    "redirectEnd",
29    "fetchStart",
30    "domainLookupStart",
31    "domainLookupEnd",
32    "connectStart",
33    "connectEnd",
34    "secureConnectionStart",
35    "requestStart",
36    "responseStart",
37    "responseEnd",
38    "domLoading",
39    "domInteractive",
40    "domContentLoadedEventStart",
41    "domContentLoadedEventEnd",
42    "domComplete",
43    "loadEventStart",
44    "loadEventEnd",
45];