Skip to content

Commit

Permalink
Add {{AvailableInWorkers}} for Performance API (#36181)
Browse files Browse the repository at this point in the history
add
skyclouds2001 authored Oct 12, 2024
1 parent 8bbefa7 commit 8ab0f2f
Showing 68 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/clearmarks/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Performance.clearMarks
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`clearMarks()`** method removes all or specific {{domxref("PerformanceMark")}} objects from the browser's performance timeline.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/clearmeasures/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Performance.clearMeasures
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`clearMeasures()`** method removes all or specific {{domxref("PerformanceMeasure")}} objects from the browser's performance timeline.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Performance.clearResourceTimings
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`clearResourceTimings()`** method removes all performance entries with an {{domxref("PerformanceEntry.entryType","entryType")}} of `"resource"` from the browser's performance timeline and sets the size of the performance resource data buffer to zero.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/getentries/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Performance.getEntries
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`getEntries()`** method returns an array of all {{domxref("PerformanceEntry")}} objects currently present in the performance timeline.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/getentriesbyname/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Performance.getEntriesByName
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`getEntriesByName()`** method returns an array of {{domxref("PerformanceEntry")}} objects currently present in the performance timeline with the given _name_ and _type_.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/getentriesbytype/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Performance.getEntriesByType
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`getEntriesByType()`** method returns an array of {{domxref("PerformanceEntry")}} objects currently present in the performance timeline for a given _type_.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/index.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.Performance
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`Performance`** interface provides access to performance-related information for the current page.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/mark/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Performance.mark
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`mark()`** method creates a named {{domxref("PerformanceMark")}} object representing a high resolution timestamp marker in the browser's performance timeline.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/measure/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Performance.measure
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`measure()`** method creates a named {{domxref("PerformanceMeasure")}} object representing a time measurement between two marks in the browser's performance timeline.

Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ status:
browser-compat: api.Performance.measureUserAgentSpecificMemory
---

{{APIRef("Performance API")}} {{SeeCompatTable}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}{{SeeCompatTable}}

The **`measureUserAgentSpecificMemory()`** method is used to estimate the memory usage of a web application including all its iframes and workers.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/memory/index.md
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ status:
browser-compat: api.Performance.memory
---

{{APIRef("Performance API")}} {{Deprecated_Header}}{{Non-standard_header}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}{{Deprecated_Header}}{{Non-standard_header}}

The non-standard and legacy `performance.memory` property returns the size of the JavaScript heap which can be helpful to measure and reduce the memory footprint of websites.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/now/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Performance.now
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`performance.now()`** method returns a high resolution timestamp in milliseconds. It represents the time elapsed since {{domxref("Performance.timeOrigin")}} (the time when navigation has started in window contexts, or the time when the worker is run in {{domxref("Worker")}} and {{domxref("ServiceWorker")}} contexts).

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-event
browser-compat: api.Performance.resourcetimingbufferfull_event
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The `resourcetimingbufferfull` event is fired when the browser's [resource timing buffer](/en-US/docs/Web/API/Performance/setResourceTimingBufferSize) is full.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Performance.setResourceTimingBufferSize
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`setResourceTimingBufferSize()`** method sets the desired size of the browser's resource timing buffer which stores the `"resource"` performance entries.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/timeorigin/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.Performance.timeOrigin
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`timeOrigin`** read-only property of the {{domxref("Performance")}} interface returns the high resolution timestamp that is used as the baseline for performance-related timestamps.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/tojson/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Performance.toJSON
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`toJSON()`** method of the {{domxref("Performance")}} interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the {{domxref("Performance")}} object.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performance_api/index.md
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ spec-urls:
- https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-notrestoredreasons-interface
---

{{DefaultAPISidebar("Performance API")}}
{{DefaultAPISidebar("Performance API")}}{{AvailableInWorkers}}

The Performance API is a group of standards used to measure the performance of web applications.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceentry/duration/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceEntry.duration
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The read-only **`duration`** property returns a {{domxref("DOMHighResTimeStamp","timestamp", "", "no-code")}} that is the duration of the {{domxref("PerformanceEntry","performance entry", "", "no-code")}}. The meaning of this property depends on the value of this entry's {{domxref("PerformanceEntry.entryType", "entryType")}}.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceentry/entrytype/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceEntry.entryType
---

{{APIRef("Performance API")}} {{AvailableInWorkers}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The read-only **`entryType`** property returns a string representing the type of performance metric that this entry represents.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceentry/index.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.PerformanceEntry
---

{{APIRef("Performance API")}} {{AvailableInWorkers}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`PerformanceEntry`** object encapsulates a single performance metric that is part of the browser's performance timeline.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceentry/name/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceEntry.name
---

{{APIRef("Performance API")}} {{AvailableInWorkers}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The read-only **`name`** property of the {{domxref("PerformanceEntry")}} interface is a string representing the name for a performance entry. It acts as an identifier, but it does not have to be unique. The value depends on the subclass.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceentry/starttime/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceEntry.startTime
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The read-only **`startTime`** property returns the first {{domxref("DOMHighResTimeStamp","timestamp", "", "no-code")}} recorded for this {{domxref("PerformanceEntry")}}. The meaning of this property depends on the value of this entry's {{domxref("PerformanceEntry.entryType", "entryType")}}.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceentry/tojson/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.PerformanceEntry.toJSON
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`toJSON()`** method is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the {{domxref("PerformanceEntry")}} object.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performancemark/detail/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceMark.detail
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The read-only **`detail`** property returns arbitrary metadata that was included in the mark upon construction (either when using {{domxref("Performance.mark","performance.mark()")}} or the {{domxref("PerformanceMark.PerformanceMark","PerformanceMark()")}} constructor).

2 changes: 1 addition & 1 deletion files/en-us/web/api/performancemark/index.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.PerformanceMark
---

{{APIRef("Performance API")}} {{AvailableInWorkers}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

**`PerformanceMark`** is an interface for {{domxref("PerformanceEntry")}} objects with an {{domxref("PerformanceEntry.entryType","entryType")}} of `"mark"`.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-constructor
browser-compat: api.PerformanceMark.PerformanceMark
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`PerformanceMark()`** constructor creates a {{domxref("DOMHighResTimeStamp","timestamp")}} with the given name.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performancemeasure/detail/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceMeasure.detail
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The read-only **`detail`** property returns arbitrary metadata that was included in the mark upon construction (when using {{domxref("Performance.measure","performance.measure()")}}.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performancemeasure/index.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.PerformanceMeasure
---

{{APIRef("Performance API")}} {{AvailableInWorkers}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

**`PerformanceMeasure`** is an _abstract_ interface for {{domxref("PerformanceEntry")}} objects with an {{domxref("PerformanceEntry.entryType","entryType")}} of `"measure"`. Entries of this type are created by calling {{domxref("Performance.measure","performance.measure()")}} to add a _named_ {{domxref("DOMHighResTimeStamp")}} (the _measure_) between two _marks_ to the browser's _performance timeline_.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.PerformanceObserver.disconnect
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`disconnect()`** method of the {{domxref('PerformanceObserver')}} interface is used to stop the performance observer from receiving any {{domxref("PerformanceEntry","performance entry", '', 'true')}} events.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceobserver/index.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.PerformanceObserver
---

{{APIRef("Performance API")}} {{AvailableInWorkers}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`PerformanceObserver`** interface is used to observe performance measurement events and be notified of new {{domxref("PerformanceEntry","performance entries", '', 'true')}} as they are recorded in the browser's _performance timeline_.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceobserver/observe/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.PerformanceObserver.observe
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`observe()`** method of the **{{domxref("PerformanceObserver")}}** interface is used to specify the set of performance entry types to observe.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-constructor
browser-compat: api.PerformanceObserver.PerformanceObserver
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`PerformanceObserver()`** constructor creates a new {{domxref("PerformanceObserver")}} object with the given observer `callback`. The observer callback is invoked when {{domxref("PerformanceEntry","performance entry events", '', 'true')}} are recorded for the {{domxref("PerformanceEntry.entryType","entry types",'','true')}} that have been registered, via the {{domxref("PerformanceObserver.observe","observe()")}} method.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-static-property
browser-compat: api.PerformanceObserver.supportedEntryTypes_static
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The static **`supportedEntryTypes`** read-only property of the {{domxref("PerformanceObserver")}} interface returns an array of the {{domxref("PerformanceEntry.entryType","entryType")}} values supported by the user agent.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.PerformanceObserver.takeRecords
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`takeRecords()`** method of the {{domxref('PerformanceObserver')}} interface returns the current list of {{domxref("PerformanceEntry")}} objects stored in the performance observer, emptying it out.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.PerformanceObserverEntryList.getEntries
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`getEntries()`** method of the {{domxref("PerformanceObserverEntryList")}} interface returns a list of explicitly observed {{domxref("PerformanceEntry","performance entry", '', 'true')}} objects. The list's members are determined by the set of {{domxref("PerformanceEntry.entryType","entry types", '', 'true')}} specified in the call to the {{domxref("PerformanceObserver.observe","observe()")}} method. The list is available in the observer's callback function (as the first parameter in the callback).

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.PerformanceObserverEntryList.getEntriesByName
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`getEntriesByName()`** method of the {{domxref("PerformanceObserverEntryList")}} interface returns a list of explicitly observed {{domxref("PerformanceEntry")}} objects for a given {{domxref("PerformanceEntry.name","name")}} and {{domxref("PerformanceEntry.entryType","entryType")}}. The list's members are determined by the set of {{domxref("PerformanceEntry.entryType","entry types", '', 'entry')}} specified in the call to the {{domxref("PerformanceObserver.observe","observe()")}} method. The list is available in the observer's callback function (as the first parameter in the callback).

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.PerformanceObserverEntryList.getEntriesByType
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`getEntriesByType()`** method of the {{domxref("PerformanceObserverEntryList")}} returns a list of explicitly _observed_ {{domxref("PerformanceEntry","performance entry", '', 'true')}} objects for a given {{domxref("PerformanceEntry.entryType","performance entry type", '', 'true')}}. The list's members are determined by the set of {{domxref("PerformanceEntry.entryType","entry types", '', 'true')}} specified in the call to the {{domxref("PerformanceObserver.observe","observe()")}} method. The list is available in the observer's callback function (as the first parameter in the callback).

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceobserverentrylist/index.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.PerformanceObserverEntryList
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`PerformanceObserverEntryList`** interface is a list of {{domxref("PerformanceEntry","performance events", '', 'true')}} that were explicitly observed via the {{domxref("PerformanceObserver.observe","observe()")}} method.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.connectEnd
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`connectEnd`** read-only property returns the {{domxref("DOMHighResTimeStamp","timestamp")}} immediately after the browser finishes establishing the connection to the server to retrieve the resource. The timestamp value includes the time interval to establish the transport connection, as well as other time intervals such as TLS handshake and [SOCKS](https://en.wikipedia.org/wiki/SOCKS) authentication.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.connectStart
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`connectStart`** read-only property returns the {{domxref("DOMHighResTimeStamp","timestamp")}} immediately before the user agent starts establishing the connection to the server to retrieve the resource.

Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ status:
browser-compat: api.PerformanceResourceTiming.contentType
---

{{APIRef("Performance API")}}{{SeeCompatTable}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}{{SeeCompatTable}}

The **`contentType`** read-only property of the {{domxref("PerformanceResourceTiming")}} interface is a string indicating the content type of the fetched resource, formatted as a {{glossary("MIME type")}} and subtype separated by a forward slash.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.decodedBodySize
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding.

Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ status:
browser-compat: api.PerformanceResourceTiming.deliveryType
---

{{APIRef("Performance API")}}{{SeeCompatTable}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}{{SeeCompatTable}}

The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.domainLookupEnd
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`domainLookupEnd`** read-only property returns the {{domxref("DOMHighResTimeStamp","timestamp")}} immediately after the browser finishes the domain-name lookup for the resource.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.domainLookupStart
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`domainLookupStart`** read-only property returns the {{domxref("DOMHighResTimeStamp","timestamp")}} immediately before the browser starts the domain name lookup for the resource.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.encodedBodySize
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`encodedBodySize`** read-only property represents the size (in octets) received from the fetch (HTTP or cache) of the payload body before removing any applied content encodings (like gzip or Brotli). If the resource is retrieved from an application cache or a local resource, it must
return the size of the payload body before removing any applied content encoding.
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.fetchStart
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`fetchStart`** read-only property represents a {{domxref("DOMHighResTimeStamp","timestamp")}} immediately before the browser starts to fetch the resource.

Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ status:
browser-compat: api.PerformanceResourceTiming.firstInterimResponseStart
---

{{APIRef("Performance API")}}{{SeeCompatTable}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}{{SeeCompatTable}}

The **`firstInterimResponseStart`** read-only property returns a {{domxref("DOMHighResTimeStamp","timestamp")}} immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceresourcetiming/index.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.PerformanceResourceTiming
---

{{APIRef("Performance API")}} {{AvailableInWorkers}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`PerformanceResourceTiming`** interface enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an {{domxref("XMLHttpRequest")}}, {{SVGElement("SVG","SVG element")}}, image, or script.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.initiatorType
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.nextHopProtocol
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`nextHopProtocol`** read-only property is a string representing the network protocol used to fetch the resource, as identified by the [ALPN Protocol ID (RFC7301)](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids).

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.redirectEnd
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`redirectEnd`** read-only property returns a {{domxref("DOMHighResTimeStamp","timestamp")}} immediately after receiving the last byte of the response of the last redirect.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.redirectStart
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`redirectStart`** read-only property returns a {{domxref("DOMHighResTimeStamp","timestamp")}} representing the start time of the fetch which that initiates the redirect.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.renderBlockingStatus
---

{{APIRef("Resource Timing API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`renderBlockingStatus`** read-only property returns the render-blocking status of the resource.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.requestStart
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`requestStart`** read-only property returns a {{domxref("DOMHighResTimeStamp","timestamp")}} of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.responseEnd
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`responseEnd`** read-only property returns a {{domxref("DOMHighResTimeStamp","timestamp")}} immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.responseStart
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`responseStart`** read-only property returns a {{domxref("DOMHighResTimeStamp","timestamp")}} immediately after the browser receives the first byte of the response from the server, cache, or local resource.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.responseStatus
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`responseStatus`** read-only property represents the HTTP response status code returned when fetching the resource.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.secureConnectionStart
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`secureConnectionStart`** read-only property returns a {{domxref("DOMHighResTimeStamp","timestamp")}} immediately before the browser starts the handshake process to secure the current connection. If a secure connection is not used, the property returns zero.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.serverTiming
---

{{APIRef("Performance API")}} {{securecontext_header}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}{{securecontext_header}}

The **`serverTiming`** read-only property returns an array of {{domxref("PerformanceServerTiming")}} entries containing server timing metrics.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.PerformanceResourceTiming.toJSON
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`toJSON()`** method of the {{domxref("PerformanceResourceTiming")}} interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the {{domxref("PerformanceResourceTiming")}} object.

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.transferSize
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`transferSize`** read-only property represents the size (in octets) of the fetched resource. The size includes the response header fields plus the response payload body (as defined by [RFC7230](https://httpwg.org/specs/rfc7230.html#message.body)).

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceResourceTiming.workerStart
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`workerStart`** read-only property of the {{domxref("PerformanceResourceTiming")}} interface returns a
{{domxref("DOMHighResTimeStamp")}} immediately before dispatching the {{domxref("FetchEvent")}} if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0.
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceServerTiming.description
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`description`** read-only property returns a
string value of the server-specified metric description, or an empty
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceServerTiming.duration
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`duration`** read-only property returns a double that contains the server-specified metric duration, or the value `0.0`.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceservertiming/index.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.PerformanceServerTiming
---

{{APIRef("Performance API")}} {{AvailableInWorkers}} {{securecontext_header}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}{{securecontext_header}}

The **`PerformanceServerTiming`** interface surfaces server metrics that are sent with the response in the {{HTTPHeader("Server-Timing")}} HTTP header.

2 changes: 1 addition & 1 deletion files/en-us/web/api/performanceservertiming/name/index.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.PerformanceServerTiming.name
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`name`** read-only property returns a
string value of the server-specified metric name.
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.PerformanceServerTiming.toJSON
---

{{APIRef("Performance API")}}
{{APIRef("Performance API")}}{{AvailableInWorkers}}

The **`toJSON()`** method of the {{domxref("PerformanceServerTiming")}} interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the {{domxref("PerformanceServerTiming")}} object.

0 comments on commit 8ab0f2f

Please sign in to comment.