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