From 9a06d5b4a3874caa094bff06895c892914eaea93 Mon Sep 17 00:00:00 2001 From: MDN Date: Thu, 30 Sep 2021 00:53:33 +0000 Subject: [CRON] sync translated content --- files/de/_redirects.txt | 1 + files/de/_wikihistory.json | 12 +-- files/de/web/api/performance_property/index.html | 97 ++++++++++++++++++++++ files/de/web/api/window/performance/index.html | 96 --------------------- files/fr/_redirects.txt | 1 + files/fr/_wikihistory.json | 12 +-- files/fr/web/api/animation/starttime/index.html | 40 +++++++++ .../api/window/mozanimationstarttime/index.html | 39 --------- files/ja/_redirects.txt | 1 + files/ja/_wikihistory.json | 12 +-- files/ja/web/api/performance_property/index.html | 38 +++++++++ files/ja/web/api/window/performance/index.html | 37 --------- files/ko/_redirects.txt | 1 + files/ko/_wikihistory.json | 12 +-- files/ko/web/api/blob/size/index.html | 31 +++++++ files/ko/web/api/file/size/index.html | 30 ------- files/pt-br/_redirects.txt | 1 + files/pt-br/_wikihistory.json | 12 +-- .../pt-br/web/api/performance_property/index.html | 34 ++++++++ files/pt-br/web/api/window/performance/index.html | 33 -------- files/ru/_redirects.txt | 2 + files/ru/_wikihistory.json | 24 +++--- files/ru/web/api/animation/starttime/index.html | 47 +++++++++++ files/ru/web/api/performance_property/index.html | 49 +++++++++++ .../api/window/mozanimationstarttime/index.html | 46 ---------- files/ru/web/api/window/performance/index.html | 48 ----------- files/zh-cn/_redirects.txt | 7 +- files/zh-cn/_wikihistory.json | 44 +++++----- .../index.html | 31 +++++++ files/zh-cn/web/api/animation/starttime/index.html | 22 +++++ files/zh-cn/web/api/file/size/index.html | 30 ------- .../zh-cn/web/api/performance_property/index.html | 36 ++++++++ .../api/window/mozanimationstarttime/index.html | 21 ----- files/zh-cn/web/api/window/performance/index.html | 35 -------- 34 files changed, 501 insertions(+), 481 deletions(-) create mode 100644 files/de/web/api/performance_property/index.html delete mode 100644 files/de/web/api/window/performance/index.html create mode 100644 files/fr/web/api/animation/starttime/index.html delete mode 100644 files/fr/web/api/window/mozanimationstarttime/index.html create mode 100644 files/ja/web/api/performance_property/index.html delete mode 100644 files/ja/web/api/window/performance/index.html create mode 100644 files/ko/web/api/blob/size/index.html delete mode 100644 files/ko/web/api/file/size/index.html create mode 100644 files/pt-br/web/api/performance_property/index.html delete mode 100644 files/pt-br/web/api/window/performance/index.html create mode 100644 files/ru/web/api/animation/starttime/index.html create mode 100644 files/ru/web/api/performance_property/index.html delete mode 100644 files/ru/web/api/window/mozanimationstarttime/index.html delete mode 100644 files/ru/web/api/window/performance/index.html create mode 100644 files/zh-cn/conflicting/web/api/blob/size_3e7c15d3e7851172bb4623d0237d8c9e/index.html create mode 100644 files/zh-cn/web/api/animation/starttime/index.html delete mode 100644 files/zh-cn/web/api/file/size/index.html create mode 100644 files/zh-cn/web/api/performance_property/index.html delete mode 100644 files/zh-cn/web/api/window/mozanimationstarttime/index.html delete mode 100644 files/zh-cn/web/api/window/performance/index.html (limited to 'files') diff --git a/files/de/_redirects.txt b/files/de/_redirects.txt index 337bc6522a..774cfd74b9 100644 --- a/files/de/_redirects.txt +++ b/files/de/_redirects.txt @@ -449,6 +449,7 @@ /de/docs/Web/API/WebGL_API/Tutorial/Objekte_mit_WebGL_animieren /de/docs/Web/API/WebGL_API/Tutorial/Animating_objects_with_WebGL /de/docs/Web/API/WebGL_API/Tutorial/Texturen_in_WebGL_verwenden /de/docs/Web/API/WebGL_API/Tutorial/Using_textures_in_WebGL /de/docs/Web/API/Window.alert /de/docs/Web/API/Window/alert +/de/docs/Web/API/Window/performance /de/docs/Web/API/performance_property /de/docs/Web/API/Window/setTimeout /de/docs/Web/API/setTimeout /de/docs/Web/API/WindowBase64 /de/docs/Web/API/WindowOrWorkerGlobalScope /de/docs/Web/API/WindowBase64/btoa /de/docs/Web/API/btoa diff --git a/files/de/_wikihistory.json b/files/de/_wikihistory.json index 8a0840e847..8d59c2dc6f 100644 --- a/files/de/_wikihistory.json +++ b/files/de/_wikihistory.json @@ -4099,12 +4099,6 @@ "frickth" ] }, - "Web/API/Window/performance": { - "modified": "2019-03-23T22:07:15.480Z", - "contributors": [ - "amelzer" - ] - }, "Web/API/Window/print": { "modified": "2020-10-15T21:39:45.899Z", "contributors": [ @@ -4226,6 +4220,12 @@ "mwsh2005" ] }, + "Web/API/performance_property": { + "modified": "2019-03-23T22:07:15.480Z", + "contributors": [ + "amelzer" + ] + }, "Web/API/setTimeout": { "modified": "2019-03-23T23:36:28.621Z", "contributors": [ diff --git a/files/de/web/api/performance_property/index.html b/files/de/web/api/performance_property/index.html new file mode 100644 index 0000000000..33c3459cea --- /dev/null +++ b/files/de/web/api/performance_property/index.html @@ -0,0 +1,97 @@ +--- +title: Window.performance +slug: Web/API/performance_property +tags: + - Performanz + - Timing +translation_of: Web/API/Window/performance +original_slug: Web/API/Window/performance +--- +
{{APIRef("High Resolution Time")}}
+ +

Die Eigenschaft performance der {{domxref("Window")}} Schnittstelle  gibt ein {{domxref("Performance")}} Objekt zurück, welches benutzt werden kann, um Performanz-Informationen über das aktuelle Dokument zu sammeln. Sie dient als Bereitstellungspunkt für die Performance Timeline API, die High Resolution Time API, die Navigation Timing API, die User Timing API, und die Resource Timing API.

+ +

Syntax

+ +
performanceData = window.performance;
+ +

Wert

+ +

Ein {{domxref("Performance")}}-Objekt bietet Zugriff auf Performanz- und Timing-Informationen, die von den APIs, welche es offen legt, bereit gestellt werden.

+ +

Spezifikationen

+ + + + + + + + + + + + + + +
SpecifikationStatusKommentar
{{SpecName('Highres Time', '#the-performance-interface', 'window.performance')}}{{Spec2('Highres Time')}}Definiert die now() Methode.
+ +

Browserkompabilität

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Grundsätzliche Unterstützung6.0{{CompatVersionUnknown}}{{CompatGeckoDesktop("7.0")}}9.015.08
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewEdgeFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Grundsätzliche Unterstützung{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile("7.0")}}9.015.09{{CompatVersionUnknown}}
+
+ +

 

diff --git a/files/de/web/api/window/performance/index.html b/files/de/web/api/window/performance/index.html deleted file mode 100644 index 7805b7b019..0000000000 --- a/files/de/web/api/window/performance/index.html +++ /dev/null @@ -1,96 +0,0 @@ ---- -title: Window.performance -slug: Web/API/Window/performance -tags: - - Performanz - - Timing -translation_of: Web/API/Window/performance ---- -
{{APIRef("High Resolution Time")}}
- -

Die Eigenschaft performance der {{domxref("Window")}} Schnittstelle  gibt ein {{domxref("Performance")}} Objekt zurück, welches benutzt werden kann, um Performanz-Informationen über das aktuelle Dokument zu sammeln. Sie dient als Bereitstellungspunkt für die Performance Timeline API, die High Resolution Time API, die Navigation Timing API, die User Timing API, und die Resource Timing API.

- -

Syntax

- -
performanceData = window.performance;
- -

Wert

- -

Ein {{domxref("Performance")}}-Objekt bietet Zugriff auf Performanz- und Timing-Informationen, die von den APIs, welche es offen legt, bereit gestellt werden.

- -

Spezifikationen

- - - - - - - - - - - - - - -
SpecifikationStatusKommentar
{{SpecName('Highres Time', '#the-performance-interface', 'window.performance')}}{{Spec2('Highres Time')}}Definiert die now() Methode.
- -

Browserkompabilität

- -
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Grundsätzliche Unterstützung6.0{{CompatVersionUnknown}}{{CompatGeckoDesktop("7.0")}}9.015.08
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewEdgeFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Grundsätzliche Unterstützung{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile("7.0")}}9.015.09{{CompatVersionUnknown}}
-
- -

 

diff --git a/files/fr/_redirects.txt b/files/fr/_redirects.txt index f8a1ed0fdb..75a6c649fe 100644 --- a/files/fr/_redirects.txt +++ b/files/fr/_redirects.txt @@ -3790,6 +3790,7 @@ /fr/docs/Web/API/Window/URL /fr/docs/conflicting/Web/API/URL /fr/docs/Web/API/Window/caches /fr/docs/Web/API/caches /fr/docs/Web/API/Window/gamepaddisconnected /fr/docs/Web/API/Window/gamepaddisconnected_event +/fr/docs/Web/API/Window/mozAnimationStartTime /fr/docs/Web/API/Animation/startTime /fr/docs/Web/API/Window/ondevicelight /fr/docs/orphaned/Web/API/Window/ondevicelight /fr/docs/Web/API/Window/onresize /fr/docs/conflicting/Web/API/GlobalEventHandlers/onresize /fr/docs/Web/API/WindowBase64 /fr/docs/Web/API/WindowOrWorkerGlobalScope diff --git a/files/fr/_wikihistory.json b/files/fr/_wikihistory.json index e17fdcfc2a..6ecbbc4a2f 100644 --- a/files/fr/_wikihistory.json +++ b/files/fr/_wikihistory.json @@ -11567,6 +11567,12 @@ "GrandSchtroumpf" ] }, + "Web/API/Animation/startTime": { + "modified": "2020-10-15T22:33:31.316Z", + "contributors": [ + "Voulto" + ] + }, "Web/API/AnimationEvent": { "modified": "2020-11-16T08:35:46.188Z", "contributors": [ @@ -21102,12 +21108,6 @@ "Voulto" ] }, - "Web/API/Window/mozAnimationStartTime": { - "modified": "2020-10-15T22:33:31.316Z", - "contributors": [ - "Voulto" - ] - }, "Web/API/Window/mozInnerScreenX": { "modified": "2020-10-15T22:33:30.539Z", "contributors": [ diff --git a/files/fr/web/api/animation/starttime/index.html b/files/fr/web/api/animation/starttime/index.html new file mode 100644 index 0000000000..48d8361bf8 --- /dev/null +++ b/files/fr/web/api/animation/starttime/index.html @@ -0,0 +1,40 @@ +--- +title: Window.mozAnimationStartTime +slug: Web/API/Animation/startTime +tags: + - API + - HTML DOM + - Obsolete + - Propriété + - Reference + - Window +translation_of: Web/API/Window/mozAnimationStartTime +original_slug: Web/API/Window/mozAnimationStartTime +--- +

{{APIRef("Mozilla Extensions")}}{{Non-standard_Header}}{{Obsolete_Header("Gecko42")}}

+ +

Renvoie l'heure, en millisecondes depuis l'époque, à laquelle les animations ont commencé maintenant doivent être considérées comme ayant commencé. Cette valeur doit être utilisée à la place, par exemple, Date.now(), car cette valeur sera la même pour toutes les animations lancées dans cette fenêtre pendant cet intervalle d'actualisation, leur permettant de rester synchronisées les unes avec les autres.

+ +

Cela permet également aux animations basées sur JavaScript de rester synchronisées avec les transitions CSS et les animations SMIL déclenchées pendant le même intervalle d'actualisation.

+ +

Syntaxe

+ +
time = window.mozAnimationStartTime;
+
+ +

Paramètres

+ + + +

Compatibilité des navigateurs

+ +

{{Compat("api.Window.mozAnimationStartTime")}}

+ +

Voir également

+ + diff --git a/files/fr/web/api/window/mozanimationstarttime/index.html b/files/fr/web/api/window/mozanimationstarttime/index.html deleted file mode 100644 index cd98cffd8b..0000000000 --- a/files/fr/web/api/window/mozanimationstarttime/index.html +++ /dev/null @@ -1,39 +0,0 @@ ---- -title: Window.mozAnimationStartTime -slug: Web/API/Window/mozAnimationStartTime -tags: - - API - - HTML DOM - - Obsolete - - Propriété - - Reference - - Window -translation_of: Web/API/Window/mozAnimationStartTime ---- -

{{APIRef("Mozilla Extensions")}}{{Non-standard_Header}}{{Obsolete_Header("Gecko42")}}

- -

Renvoie l'heure, en millisecondes depuis l'époque, à laquelle les animations ont commencé maintenant doivent être considérées comme ayant commencé. Cette valeur doit être utilisée à la place, par exemple, Date.now(), car cette valeur sera la même pour toutes les animations lancées dans cette fenêtre pendant cet intervalle d'actualisation, leur permettant de rester synchronisées les unes avec les autres.

- -

Cela permet également aux animations basées sur JavaScript de rester synchronisées avec les transitions CSS et les animations SMIL déclenchées pendant le même intervalle d'actualisation.

- -

Syntaxe

- -
time = window.mozAnimationStartTime;
-
- -

Paramètres

- - - -

Compatibilité des navigateurs

- -

{{Compat("api.Window.mozAnimationStartTime")}}

- -

Voir également

- - diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index 6e48cc80d1..4c3a2108cd 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -3299,6 +3299,7 @@ /ja/docs/Web/API/Window/onmouseup /ja/docs/Web/API/GlobalEventHandlers/onmouseup /ja/docs/Web/API/Window/onreset /ja/docs/Web/API/GlobalEventHandlers/onreset /ja/docs/Web/API/Window/onresize /ja/docs/Web/API/GlobalEventHandlers/onresize +/ja/docs/Web/API/Window/performance /ja/docs/Web/API/performance_property /ja/docs/Web/API/Window/restore /ja/docs/Web/API/Window/moveTo /ja/docs/Web/API/Window/setInterval /ja/docs/Web/API/setInterval /ja/docs/Web/API/Window/setTimeout /ja/docs/Web/API/setTimeout diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index 0921037642..aac2c96cd6 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -24779,12 +24779,6 @@ "mfuji09" ] }, - "Web/API/Window/performance": { - "modified": "2020-10-15T22:08:48.553Z", - "contributors": [ - "silverskyvicto" - ] - }, "Web/API/Window/personalbar": { "modified": "2019-03-23T23:50:07.790Z", "contributors": [ @@ -26310,6 +26304,12 @@ "k-kuwahara" ] }, + "Web/API/performance_property": { + "modified": "2020-10-15T22:08:48.553Z", + "contributors": [ + "silverskyvicto" + ] + }, "Web/API/setInterval": { "modified": "2020-10-15T21:15:06.280Z", "contributors": [ diff --git a/files/ja/web/api/performance_property/index.html b/files/ja/web/api/performance_property/index.html new file mode 100644 index 0000000000..b0e3ece5c2 --- /dev/null +++ b/files/ja/web/api/performance_property/index.html @@ -0,0 +1,38 @@ +--- +title: Window.performance +slug: Web/API/performance_property +translation_of: Web/API/Window/performance +original_slug: Web/API/Window/performance +--- +

{{APIRef("High Resolution Time")}}

+ +

{{domxref("Window")}} インタフェースのパフォーマンスプロパティは、現在のドキュメントに関するパフォーマンス情報を収集するために使用できる {{domxref("Performance")}} オブジェクトを返します。これはパフォーマンスタイムライン API、高解像度時間 API、ナビゲーションタイミング APIユーザータイミング API およびリソースタイミング API の公開ポイントとして機能します。

+ +

構文

+ +
performanceData = window.performance;
+ +

+ +

それが公開する API によって提供されるパフォーマンスおよびタイミング関連情報へのアクセスを提供する {{domxref("Performance")}} オブジェクト。

+ +

仕様

+ + + + + + + + + + + + + + +
仕様ステータスコメント
{{SpecName('Highres Time', '#the-performance-interface', 'window.performance')}}{{Spec2('Highres Time')}}Defines now() method.
+ +

ブラウザの互換性

+ +

{{Compat("api.Window.performance")}}

diff --git a/files/ja/web/api/window/performance/index.html b/files/ja/web/api/window/performance/index.html deleted file mode 100644 index 2eb08da672..0000000000 --- a/files/ja/web/api/window/performance/index.html +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: Window.performance -slug: Web/API/Window/performance -translation_of: Web/API/Window/performance ---- -

{{APIRef("High Resolution Time")}}

- -

{{domxref("Window")}} インタフェースのパフォーマンスプロパティは、現在のドキュメントに関するパフォーマンス情報を収集するために使用できる {{domxref("Performance")}} オブジェクトを返します。これはパフォーマンスタイムライン API、高解像度時間 API、ナビゲーションタイミング APIユーザータイミング API およびリソースタイミング API の公開ポイントとして機能します。

- -

構文

- -
performanceData = window.performance;
- -

- -

それが公開する API によって提供されるパフォーマンスおよびタイミング関連情報へのアクセスを提供する {{domxref("Performance")}} オブジェクト。

- -

仕様

- - - - - - - - - - - - - - -
仕様ステータスコメント
{{SpecName('Highres Time', '#the-performance-interface', 'window.performance')}}{{Spec2('Highres Time')}}Defines now() method.
- -

ブラウザの互換性

- -

{{Compat("api.Window.performance")}}

diff --git a/files/ko/_redirects.txt b/files/ko/_redirects.txt index eca610565f..bd1fe5c87a 100644 --- a/files/ko/_redirects.txt +++ b/files/ko/_redirects.txt @@ -452,6 +452,7 @@ /ko/docs/Web/API/Element/firstChild /ko/docs/Web/API/Node/firstChild /ko/docs/Web/API/Event/createEvent /ko/docs/Web/API/Document/createEvent /ko/docs/Web/API/Fetch_API/Fetch의_사용법 /ko/docs/Web/API/Fetch_API/Using_Fetch +/ko/docs/Web/API/File/size /ko/docs/Web/API/Blob/size /ko/docs/Web/API/FileReader.result /ko/docs/Web/API/FileReader/result /ko/docs/Web/API/HTMLHyperlinkElementUtils/href /ko/docs/Web/API/HTMLAnchorElement/href /ko/docs/Web/API/HTML_드래그_앤_드롭_API /ko/docs/Web/API/HTML_Drag_and_Drop_API diff --git a/files/ko/_wikihistory.json b/files/ko/_wikihistory.json index 58636a3a7f..95562d5437 100644 --- a/files/ko/_wikihistory.json +++ b/files/ko/_wikihistory.json @@ -3540,6 +3540,12 @@ "limkukhyun" ] }, + "Web/API/Blob/size": { + "modified": "2019-03-18T20:48:30.715Z", + "contributors": [ + "DeadIntegral" + ] + }, "Web/API/BroadcastChannel": { "modified": "2020-10-15T22:17:58.054Z", "contributors": [ @@ -4878,12 +4884,6 @@ "DeadIntegral" ] }, - "Web/API/File/size": { - "modified": "2019-03-18T20:48:30.715Z", - "contributors": [ - "DeadIntegral" - ] - }, "Web/API/FileList": { "modified": "2019-03-18T21:44:05.861Z", "contributors": [ diff --git a/files/ko/web/api/blob/size/index.html b/files/ko/web/api/blob/size/index.html new file mode 100644 index 0000000000..df9a7bfa60 --- /dev/null +++ b/files/ko/web/api/blob/size/index.html @@ -0,0 +1,31 @@ +--- +title: File.size +slug: Web/API/Blob/size +translation_of: Web/API/File/size +original_slug: Web/API/File/size +--- +

{{APIRef("File API") }}

+ +

Summary

+ +

파일의 크기를 바이트 단위로 반환합니다.

+ +

Syntax

+ +
var size = instanceOfFile.size
+ +

Value

+ +

숫자

+ +

Specification

+ +

사양에 포함되지 않았습니다.

+ +

See also

+ + + +

 

diff --git a/files/ko/web/api/file/size/index.html b/files/ko/web/api/file/size/index.html deleted file mode 100644 index eb133e801f..0000000000 --- a/files/ko/web/api/file/size/index.html +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: File.size -slug: Web/API/File/size -translation_of: Web/API/File/size ---- -

{{APIRef("File API") }}

- -

Summary

- -

파일의 크기를 바이트 단위로 반환합니다.

- -

Syntax

- -
var size = instanceOfFile.size
- -

Value

- -

숫자

- -

Specification

- -

사양에 포함되지 않았습니다.

- -

See also

- - - -

 

diff --git a/files/pt-br/_redirects.txt b/files/pt-br/_redirects.txt index 8b616cd018..8a590594f7 100644 --- a/files/pt-br/_redirects.txt +++ b/files/pt-br/_redirects.txt @@ -539,6 +539,7 @@ /pt-BR/docs/Web/API/Window.navigator /pt-BR/docs/Web/API/Window/navigator /pt-BR/docs/Web/API/Window.openDialog /pt-BR/docs/Web/API/Window/openDialog /pt-BR/docs/Web/API/Window/Window.localStorage /pt-BR/docs/Web/API/Window/localStorage +/pt-BR/docs/Web/API/Window/performance /pt-BR/docs/Web/API/performance_property /pt-BR/docs/Web/API/WindowBase64/atob /pt-BR/docs/Web/API/atob /pt-BR/docs/Web/API/WindowOrWorkerGlobalScope/atob /pt-BR/docs/Web/API/atob /pt-BR/docs/Web/API/WindowOrWorkerGlobalScope/clearTimeout /pt-BR/docs/Web/API/clearTimeout diff --git a/files/pt-br/_wikihistory.json b/files/pt-br/_wikihistory.json index 0df24fcd5d..9bb010492b 100644 --- a/files/pt-br/_wikihistory.json +++ b/files/pt-br/_wikihistory.json @@ -6738,12 +6738,6 @@ "perrucho" ] }, - "Web/API/Window/performance": { - "modified": "2019-03-23T22:44:28.136Z", - "contributors": [ - "augustoclaro" - ] - }, "Web/API/Window/popstate_event": { "modified": "2019-04-26T08:34:23.645Z", "contributors": [ @@ -7008,6 +7002,12 @@ "dowgssss" ] }, + "Web/API/performance_property": { + "modified": "2019-03-23T22:44:28.136Z", + "contributors": [ + "augustoclaro" + ] + }, "Web/API/setInterval": { "modified": "2020-10-15T22:16:56.864Z", "contributors": [ diff --git a/files/pt-br/web/api/performance_property/index.html b/files/pt-br/web/api/performance_property/index.html new file mode 100644 index 0000000000..10734b7551 --- /dev/null +++ b/files/pt-br/web/api/performance_property/index.html @@ -0,0 +1,34 @@ +--- +title: Window.performance +slug: Web/API/performance_property +translation_of: Web/API/Window/performance +original_slug: Web/API/Window/performance +--- +
{{APIREf}}
+ +
A API Web Performance permite páginas da web acessarem algumas funções para medir a performance de páginas e aplicações da web, incluindo a API Navigation Timing e dados de tempo de alta resolução.
+ +
 
+ +

Métodos

+ +
+
{{domxref("Performance.mark()", "performance.mark()")}}
+
Mapeia um {{domxref("DOMHighResTimeStamp")}} para o nome especificado representando a quantidade de milissegundos passados desde um momento de referência.
+
+ +
+
{{domxref("Performance.now()", "performance.now()")}}
+
Retorna um {{domxref("DOMHighResTimeStamp")}} representando a quantidade de milissegundos passados desde um momento de referência.
+
+ +

Propriedades

+ +
+
{{domxref("Performance.timing", "performance.timing")}}
+
É um objeto {{domxref("PerformanceTiming")}} contendo informações de performance relacionadas a latência.
+
{{domxref("Performance.navigation", "performance.navigation")}}
+
É um objeto {{domxref("PerformanceNavigation")}} representando o tipo de navegação que ocorre no contexto de navegação dado, como a quantidade de redirecionamentos necessários para buscar o recurso.
+
performance.memory
+
Uma extensao não-padrão adicionada ao Chrome.
+
diff --git a/files/pt-br/web/api/window/performance/index.html b/files/pt-br/web/api/window/performance/index.html deleted file mode 100644 index 6e7edcd558..0000000000 --- a/files/pt-br/web/api/window/performance/index.html +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: Window.performance -slug: Web/API/Window/performance -translation_of: Web/API/Window/performance ---- -
{{APIREf}}
- -
A API Web Performance permite páginas da web acessarem algumas funções para medir a performance de páginas e aplicações da web, incluindo a API Navigation Timing e dados de tempo de alta resolução.
- -
 
- -

Métodos

- -
-
{{domxref("Performance.mark()", "performance.mark()")}}
-
Mapeia um {{domxref("DOMHighResTimeStamp")}} para o nome especificado representando a quantidade de milissegundos passados desde um momento de referência.
-
- -
-
{{domxref("Performance.now()", "performance.now()")}}
-
Retorna um {{domxref("DOMHighResTimeStamp")}} representando a quantidade de milissegundos passados desde um momento de referência.
-
- -

Propriedades

- -
-
{{domxref("Performance.timing", "performance.timing")}}
-
É um objeto {{domxref("PerformanceTiming")}} contendo informações de performance relacionadas a latência.
-
{{domxref("Performance.navigation", "performance.navigation")}}
-
É um objeto {{domxref("PerformanceNavigation")}} representando o tipo de navegação que ocorre no contexto de navegação dado, como a quantidade de redirecionamentos necessários para buscar o recurso.
-
performance.memory
-
Uma extensao não-padrão adicionada ao Chrome.
-
diff --git a/files/ru/_redirects.txt b/files/ru/_redirects.txt index dcdb318df3..342eec5f29 100644 --- a/files/ru/_redirects.txt +++ b/files/ru/_redirects.txt @@ -368,6 +368,8 @@ /ru/docs/Web/API/WebGL_API/Using_shaders_to_apply_color_in_WebGL /ru/docs/Web/API/WebGL_API/Tutorial/Using_shaders_to_apply_color_in_WebGL /ru/docs/Web/API/WebRTC_API/протоколы /ru/docs/Web/API/WebRTC_API/Protocols /ru/docs/Web/API/WebRTC_API/связь /ru/docs/Web/API/WebRTC_API/Connectivity +/ru/docs/Web/API/Window/mozAnimationStartTime /ru/docs/Web/API/Animation/startTime +/ru/docs/Web/API/Window/performance /ru/docs/Web/API/performance_property /ru/docs/Web/API/WindowBase64/Base64_encoding_and_decoding /ru/docs/Glossary/Base64 /ru/docs/Web/API/WindowBase64/btoa /ru/docs/Web/API/btoa /ru/docs/Web/API/WindowOrWorkerGlobalScope/atob /ru/docs/Web/API/atob diff --git a/files/ru/_wikihistory.json b/files/ru/_wikihistory.json index 716c988409..f71b8e7a70 100644 --- a/files/ru/_wikihistory.json +++ b/files/ru/_wikihistory.json @@ -5553,6 +5553,12 @@ "MuradAz" ] }, + "Web/API/Animation/startTime": { + "modified": "2020-10-15T22:21:33.446Z", + "contributors": [ + "lastshipsails" + ] + }, "Web/API/AnimationEvent": { "modified": "2019-03-23T22:27:52.691Z", "contributors": [ @@ -11342,12 +11348,6 @@ "ekirpichyov" ] }, - "Web/API/Window/mozAnimationStartTime": { - "modified": "2020-10-15T22:21:33.446Z", - "contributors": [ - "lastshipsails" - ] - }, "Web/API/Window/name": { "modified": "2019-03-23T22:51:25.153Z", "contributors": [ @@ -11398,12 +11398,6 @@ "olehrgf" ] }, - "Web/API/Window/performance": { - "modified": "2019-03-18T21:36:16.802Z", - "contributors": [ - "Demjan" - ] - }, "Web/API/Window/popstate_event": { "modified": "2019-04-26T08:34:41.629Z", "contributors": [ @@ -11928,6 +11922,12 @@ "fsanano" ] }, + "Web/API/performance_property": { + "modified": "2019-03-18T21:36:16.802Z", + "contributors": [ + "Demjan" + ] + }, "Web/API/setInterval": { "modified": "2020-11-18T12:13:20.493Z", "contributors": [ diff --git a/files/ru/web/api/animation/starttime/index.html b/files/ru/web/api/animation/starttime/index.html new file mode 100644 index 0000000000..71c07ed4ac --- /dev/null +++ b/files/ru/web/api/animation/starttime/index.html @@ -0,0 +1,47 @@ +--- +title: Window.mozAnimationStartTime +slug: Web/API/Animation/startTime +tags: + - >- + API HTML DOM NeedsExample NeedsMarkupWork NeedsSpecTable Property + Reference Window +translation_of: Web/API/Window/mozAnimationStartTime +original_slug: Web/API/Window/mozAnimationStartTime +--- +

{{ APIRef() }}

+ +

{{ gecko_minversion_header("2.0") }}{{ non-standard_header() }}

+ +

Summary

+ +

Возвращает время в миллисекундах с начала эпохи UNIX, начиная с которого анимации, начавшиеся в определённый момент, должны быть сочтены уже начавшимися. Это значение должно быть использовано вместо, например, Date.now(), потому что оно будет тем же самым для анимаций, начавшихся в этом окне в течение этого интервала, позволяя им синхронизироваться между собой.

+ +

Это также позволяет анимациям JavaScript оставаться синхронизированными с CSS переходами и SMIL анимациями, запущенными в течение того же интервала обновления.

+ +

Syntax

+ +
time = window.mozAnimationStartTime;
+
+ +

Parameters

+ + + +

Specification

+ +

Not part of specification.

+ +

Browser compatibility

+ + + +

{{Compat("api.Window.mozAnimationStartTime")}}

+ +

See also

+ + diff --git a/files/ru/web/api/performance_property/index.html b/files/ru/web/api/performance_property/index.html new file mode 100644 index 0000000000..74532dea94 --- /dev/null +++ b/files/ru/web/api/performance_property/index.html @@ -0,0 +1,49 @@ +--- +title: Window.performance +slug: Web/API/performance_property +translation_of: Web/API/Window/performance +original_slug: Web/API/Window/performance +--- +
{{APIREf}}
+ +

The Web Performance API allows web pages access to certain functions for measuring the performance of web pages and web applications, including the Navigation Timing API and high-resolution time data.

+ +

Methods

+ +
+
{{domxref("Performance.mark()", "performance.mark()")}}
+
Maps a {{domxref("DOMHighResTimeStamp")}} to a specified name representing the amount of milliseconds elapsed since a reference instant.
+
+ +
+
{{domxref("Performance.now()", "performance.now()")}}
+
Возвращает {{domxref("DOMHighResTimeStamp")}} представляющий количество миллисекунд прошедшее с момента отсчёта.
+
measure()
+
This method stores the DOMHighResTimeStamp duration between two marks along with the associated name (a "measure").
+
getEntriesByType()
+
 
+
getEntriesByType()
+
 
+
getEntriesByName()
+
 
+
clearMarks()
+
+

If the markName argument is not specified, this method removes all marks and their associated DOMHighResTimeStamp time values.

+ +

If the markName argument is specified, this method removes all DOMHighResTimeStamp time values for the given mark name.

+ +

If the markName argument is specified but the specified markName does not exist, this method will do nothing.
+  

+
+
+ +

Properties

+ +
+
{{domxref("Performance.timing", "performance.timing")}}
+
Is a {{domxref("PerformanceTiming")}} object containing latency-related performance information.
+
{{domxref("Performance.navigation", "performance.navigation")}}
+
Is a {{domxref("PerformanceNavigation")}} object representing the type of navigation that occurs in the given browsing context, like the amount of redirections needed to fetch the resource.
+
performance.memory
+
A non-standard extension added in Chrome.
+
diff --git a/files/ru/web/api/window/mozanimationstarttime/index.html b/files/ru/web/api/window/mozanimationstarttime/index.html deleted file mode 100644 index 52c4ce128c..0000000000 --- a/files/ru/web/api/window/mozanimationstarttime/index.html +++ /dev/null @@ -1,46 +0,0 @@ ---- -title: Window.mozAnimationStartTime -slug: Web/API/Window/mozAnimationStartTime -tags: - - >- - API HTML DOM NeedsExample NeedsMarkupWork NeedsSpecTable Property - Reference Window -translation_of: Web/API/Window/mozAnimationStartTime ---- -

{{ APIRef() }}

- -

{{ gecko_minversion_header("2.0") }}{{ non-standard_header() }}

- -

Summary

- -

Возвращает время в миллисекундах с начала эпохи UNIX, начиная с которого анимации, начавшиеся в определённый момент, должны быть сочтены уже начавшимися. Это значение должно быть использовано вместо, например, Date.now(), потому что оно будет тем же самым для анимаций, начавшихся в этом окне в течение этого интервала, позволяя им синхронизироваться между собой.

- -

Это также позволяет анимациям JavaScript оставаться синхронизированными с CSS переходами и SMIL анимациями, запущенными в течение того же интервала обновления.

- -

Syntax

- -
time = window.mozAnimationStartTime;
-
- -

Parameters

- - - -

Specification

- -

Not part of specification.

- -

Browser compatibility

- - - -

{{Compat("api.Window.mozAnimationStartTime")}}

- -

See also

- - diff --git a/files/ru/web/api/window/performance/index.html b/files/ru/web/api/window/performance/index.html deleted file mode 100644 index 7f765838c8..0000000000 --- a/files/ru/web/api/window/performance/index.html +++ /dev/null @@ -1,48 +0,0 @@ ---- -title: Window.performance -slug: Web/API/Window/performance -translation_of: Web/API/Window/performance ---- -
{{APIREf}}
- -

The Web Performance API allows web pages access to certain functions for measuring the performance of web pages and web applications, including the Navigation Timing API and high-resolution time data.

- -

Methods

- -
-
{{domxref("Performance.mark()", "performance.mark()")}}
-
Maps a {{domxref("DOMHighResTimeStamp")}} to a specified name representing the amount of milliseconds elapsed since a reference instant.
-
- -
-
{{domxref("Performance.now()", "performance.now()")}}
-
Возвращает {{domxref("DOMHighResTimeStamp")}} представляющий количество миллисекунд прошедшее с момента отсчёта.
-
measure()
-
This method stores the DOMHighResTimeStamp duration between two marks along with the associated name (a "measure").
-
getEntriesByType()
-
 
-
getEntriesByType()
-
 
-
getEntriesByName()
-
 
-
clearMarks()
-
-

If the markName argument is not specified, this method removes all marks and their associated DOMHighResTimeStamp time values.

- -

If the markName argument is specified, this method removes all DOMHighResTimeStamp time values for the given mark name.

- -

If the markName argument is specified but the specified markName does not exist, this method will do nothing.
-  

-
-
- -

Properties

- -
-
{{domxref("Performance.timing", "performance.timing")}}
-
Is a {{domxref("PerformanceTiming")}} object containing latency-related performance information.
-
{{domxref("Performance.navigation", "performance.navigation")}}
-
Is a {{domxref("PerformanceNavigation")}} object representing the type of navigation that occurs in the given browsing context, like the amount of redirections needed to fetch the resource.
-
performance.memory
-
A non-standard extension added in Chrome.
-
diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt index 90ff7ef11f..1cf17f7a98 100644 --- a/files/zh-cn/_redirects.txt +++ b/files/zh-cn/_redirects.txt @@ -446,7 +446,7 @@ /zh-CN/docs/DOM/window.location /zh-CN/docs/Web/API/Window/location /zh-CN/docs/DOM/window.minimize /zh-CN/docs/conflicting/Web/API/Window /zh-CN/docs/DOM/window.moveTo /zh-CN/docs/Web/API/Window/moveTo -/zh-CN/docs/DOM/window.mozAnimationStartTime /zh-CN/docs/Web/API/Window/mozAnimationStartTIme +/zh-CN/docs/DOM/window.mozAnimationStartTime /zh-CN/docs/Web/API/Animation/startTime /zh-CN/docs/DOM/window.navigator /zh-CN/docs/Web/API/Window/navigator /zh-CN/docs/DOM/window.navigator.battery /zh-CN/docs/Web/API/Navigator/battery /zh-CN/docs/DOM/window.navigator.buildID /zh-CN/docs/Web/API/Navigator/buildID @@ -1327,6 +1327,7 @@ /zh-CN/docs/Web/API/File.name /zh-CN/docs/Web/API/File/name /zh-CN/docs/Web/API/File/fileName /zh-CN/docs/conflicting/Web/API/File/name /zh-CN/docs/Web/API/File/fileSize /zh-CN/docs/conflicting/Web/API/Blob/size +/zh-CN/docs/Web/API/File/size /zh-CN/docs/conflicting/Web/API/Blob/size_3e7c15d3e7851172bb4623d0237d8c9e /zh-CN/docs/Web/API/FileReader/中止事件(abort) /zh-CN/docs/Web/API/FileReader/abort_event /zh-CN/docs/Web/API/FormData/删除 /zh-CN/docs/Web/API/FormData/delete /zh-CN/docs/Web/API/Fullscreen_API/指南 /zh-CN/docs/Web/API/Fullscreen_API/Guide @@ -1528,7 +1529,7 @@ /zh-CN/docs/Web/API/Window.minimize /zh-CN/docs/conflicting/Web/API/Window /zh-CN/docs/Web/API/Window.moveBy /zh-CN/docs/Web/API/Window/moveBy /zh-CN/docs/Web/API/Window.moveTo /zh-CN/docs/Web/API/Window/moveTo -/zh-CN/docs/Web/API/Window.mozAnimationStartTime /zh-CN/docs/Web/API/Window/mozAnimationStartTIme +/zh-CN/docs/Web/API/Window.mozAnimationStartTime /zh-CN/docs/Web/API/Animation/startTime /zh-CN/docs/Web/API/Window.name /zh-CN/docs/Web/API/Window/name /zh-CN/docs/Web/API/Window.navigator /zh-CN/docs/Web/API/Window/navigator /zh-CN/docs/Web/API/Window.onbeforeunload /zh-CN/docs/Web/API/WindowEventHandlers/onbeforeunload @@ -1562,11 +1563,13 @@ /zh-CN/docs/Web/API/Window/caches /zh-CN/docs/Web/API/caches /zh-CN/docs/Web/API/Window/clearInterval /zh-CN/docs/Web/API/clearInterval /zh-CN/docs/Web/API/Window/minimize /zh-CN/docs/conflicting/Web/API/Window +/zh-CN/docs/Web/API/Window/mozAnimationStartTIme /zh-CN/docs/Web/API/Animation/startTime /zh-CN/docs/Web/API/Window/onbeforeunload /zh-CN/docs/Web/API/WindowEventHandlers/onbeforeunload /zh-CN/docs/Web/API/Window/onhashchange /zh-CN/docs/Web/API/WindowEventHandlers/onhashchange /zh-CN/docs/Web/API/Window/onpopstate /zh-CN/docs/Web/API/WindowEventHandlers/onpopstate /zh-CN/docs/Web/API/Window/onresize /zh-CN/docs/Web/API/GlobalEventHandlers/onresize /zh-CN/docs/Web/API/Window/onunload /zh-CN/docs/Web/API/WindowEventHandlers/onunload +/zh-CN/docs/Web/API/Window/performance /zh-CN/docs/Web/API/performance_property /zh-CN/docs/Web/API/Window/setInterval /zh-CN/docs/Web/API/setInterval /zh-CN/docs/Web/API/Window/setTimeout /zh-CN/docs/Web/API/setTimeout /zh-CN/docs/Web/API/WindowBase64 /zh-CN/docs/Web/API/WindowOrWorkerGlobalScope#方法 diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json index d0bbfa5ee4..22633218c1 100644 --- a/files/zh-cn/_wikihistory.json +++ b/files/zh-cn/_wikihistory.json @@ -7575,6 +7575,14 @@ "Geolage" ] }, + "Web/API/Animation/startTime": { + "modified": "2019-03-23T23:39:18.582Z", + "contributors": [ + "teoli", + "khalid32", + "ziyunfei" + ] + }, "Web/API/AnimationEvent": { "modified": "2019-03-23T23:02:22.417Z", "contributors": [ @@ -13400,12 +13408,6 @@ "ziyunfei" ] }, - "Web/API/File/size": { - "modified": "2019-03-18T21:27:15.606Z", - "contributors": [ - "levo2165" - ] - }, "Web/API/File/type": { "modified": "2019-03-23T22:09:04.649Z", "contributors": [ @@ -23191,14 +23193,6 @@ "ziyunfei" ] }, - "Web/API/Window/mozAnimationStartTIme": { - "modified": "2019-03-23T23:39:18.582Z", - "contributors": [ - "teoli", - "khalid32", - "ziyunfei" - ] - }, "Web/API/Window/mozInnerScreenX": { "modified": "2019-03-23T22:07:48.096Z", "contributors": [ @@ -23417,14 +23411,6 @@ "ziyunfei" ] }, - "Web/API/Window/performance": { - "modified": "2019-08-22T06:18:57.970Z", - "contributors": [ - "vebuqi", - "xgqfrms-GitHub", - "AceMood" - ] - }, "Web/API/Window/personalbar": { "modified": "2019-03-18T21:37:01.272Z", "contributors": [ @@ -24708,6 +24694,14 @@ "xgqfrms-GitHub" ] }, + "Web/API/performance_property": { + "modified": "2019-08-22T06:18:57.970Z", + "contributors": [ + "vebuqi", + "xgqfrms-GitHub", + "AceMood" + ] + }, "Web/API/queueMicrotask": { "modified": "2020-10-15T22:23:11.878Z", "contributors": [ @@ -46939,6 +46933,12 @@ "ziyunfei" ] }, + "conflicting/Web/API/Blob/size_3e7c15d3e7851172bb4623d0237d8c9e": { + "modified": "2019-03-18T21:27:15.606Z", + "contributors": [ + "levo2165" + ] + }, "conflicting/Web/API/Canvas_API/Tutorial": { "modified": "2019-03-23T23:20:14.159Z", "contributors": [ diff --git a/files/zh-cn/conflicting/web/api/blob/size_3e7c15d3e7851172bb4623d0237d8c9e/index.html b/files/zh-cn/conflicting/web/api/blob/size_3e7c15d3e7851172bb4623d0237d8c9e/index.html new file mode 100644 index 0000000000..9468a794ba --- /dev/null +++ b/files/zh-cn/conflicting/web/api/blob/size_3e7c15d3e7851172bb4623d0237d8c9e/index.html @@ -0,0 +1,31 @@ +--- +title: File.size +slug: conflicting/Web/API/Blob/size_3e7c15d3e7851172bb4623d0237d8c9e +translation_of: Web/API/File/size +original_slug: Web/API/File/size +--- +

{{APIRef("File API") }}

+ +

概述

+ +

以字节为单位返回文件的大小。

+ +

语法

+ +
var size = instanceOfFile.size
+ +

+ +

一个数

+ +

规范

+ +

不属于任何规范。

+ +

另请参见

+ + + +

 

diff --git a/files/zh-cn/web/api/animation/starttime/index.html b/files/zh-cn/web/api/animation/starttime/index.html new file mode 100644 index 0000000000..e298c23a8a --- /dev/null +++ b/files/zh-cn/web/api/animation/starttime/index.html @@ -0,0 +1,22 @@ +--- +title: window.mozAnimationStartTime +slug: Web/API/Animation/startTime +translation_of: Web/API/Window/mozAnimationStartTime +original_slug: Web/API/Window/mozAnimationStartTIme +--- +

{{ ApiRef() }}

+

{{ gecko_minversion_header("2.0") }}{{ non-standard_header() }}

+

概述

+

Returns the time, in milliseconds since the epoch, at which animations started now should be considered to have started. This value should be used instead of, for example, Date.now(), because this value will be the same for all animations started in this window during this refresh interval, allowing them to remain in sync with one another.

+

This also allows JavaScript-based animations to remain synchronized with CSS transitions and SMIL animations triggered during the same refresh interval.

+

语法

+
time = window.mozAnimationStartTime;
+
+

规范

+

不属于任何规范.

+

相关链接

+ +

{{ languages( { "en":"en/DOM/window.mozAnimationStartTime" } ) }}

diff --git a/files/zh-cn/web/api/file/size/index.html b/files/zh-cn/web/api/file/size/index.html deleted file mode 100644 index 5ab90e8018..0000000000 --- a/files/zh-cn/web/api/file/size/index.html +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: File.size -slug: Web/API/File/size -translation_of: Web/API/File/size ---- -

{{APIRef("File API") }}

- -

概述

- -

以字节为单位返回文件的大小。

- -

语法

- -
var size = instanceOfFile.size
- -

- -

一个数

- -

规范

- -

不属于任何规范。

- -

另请参见

- - - -

 

diff --git a/files/zh-cn/web/api/performance_property/index.html b/files/zh-cn/web/api/performance_property/index.html new file mode 100644 index 0000000000..7771c6cb0b --- /dev/null +++ b/files/zh-cn/web/api/performance_property/index.html @@ -0,0 +1,36 @@ +--- +title: Window.performance +slug: Web/API/performance_property +tags: + - Window.performance + - analytics + - 前端代码埋点 +translation_of: Web/API/Window/performance +original_slug: Web/API/Window/performance +--- +
{{APIREf}}
+ +
Web Performance API允许网页访问某些函数来测量网页和Web应用程序的性能,包括 Navigation Timing API和高分辨率时间数据。
+ +

方法

+ +
+
{{domxref("Performance.mark()", "performance.mark()")}}
+
通过一个给定的名称,将该名称(作为键)和对应的{{domxref("DOMHighResTimeStamp")}}(作为值)保存在一个哈希结构里。该键值对表示了从某一时刻(译者注:某一时刻通常是 navigationStart 事件发生时刻)到记录时刻间隔的毫秒数。(译者注:该方法一般用来多次记录时间,用于求得各记录间的时间差)
+
+ +
+
{{domxref("Performance.now()", "performance.now()")}}
+
该方法返回一个{{domxref("DOMHighResTimeStamp")}}对象,该对象表示从某一时刻(译者注:某一时刻通常是 navigationStart 事件发生时刻)到调用该方法时刻的毫秒数。
+
+ +

属性

+ +
+
{{domxref("Performance.timing", "performance.timing")}}
+
是一个{{domxref("PerformanceTiming")}} 对象,包含延迟相关的性能信息。
+
{{domxref("Performance.navigation", "performance.navigation")}}
+
是一个 {{domxref("PerformanceNavigation")}} 对象,该对象表示在当前给定浏览上下文中网页导航的类型(译者注:TYPE_BACK_FORWARD,TYPE_NAVIGATE, TYPE_RELOAD,TYPE_RESERVED)以及次数。
+
performance.memory
+
在Chrome中添加的一个非标准扩展。
+
diff --git a/files/zh-cn/web/api/window/mozanimationstarttime/index.html b/files/zh-cn/web/api/window/mozanimationstarttime/index.html deleted file mode 100644 index 41666637e4..0000000000 --- a/files/zh-cn/web/api/window/mozanimationstarttime/index.html +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: window.mozAnimationStartTime -slug: Web/API/Window/mozAnimationStartTIme -translation_of: Web/API/Window/mozAnimationStartTime ---- -

{{ ApiRef() }}

-

{{ gecko_minversion_header("2.0") }}{{ non-standard_header() }}

-

概述

-

Returns the time, in milliseconds since the epoch, at which animations started now should be considered to have started. This value should be used instead of, for example, Date.now(), because this value will be the same for all animations started in this window during this refresh interval, allowing them to remain in sync with one another.

-

This also allows JavaScript-based animations to remain synchronized with CSS transitions and SMIL animations triggered during the same refresh interval.

-

语法

-
time = window.mozAnimationStartTime;
-
-

规范

-

不属于任何规范.

-

相关链接

- -

{{ languages( { "en":"en/DOM/window.mozAnimationStartTime" } ) }}

diff --git a/files/zh-cn/web/api/window/performance/index.html b/files/zh-cn/web/api/window/performance/index.html deleted file mode 100644 index 926f4b6b40..0000000000 --- a/files/zh-cn/web/api/window/performance/index.html +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: Window.performance -slug: Web/API/Window/performance -tags: - - Window.performance - - analytics - - 前端代码埋点 -translation_of: Web/API/Window/performance ---- -
{{APIREf}}
- -
Web Performance API允许网页访问某些函数来测量网页和Web应用程序的性能,包括 Navigation Timing API和高分辨率时间数据。
- -

方法

- -
-
{{domxref("Performance.mark()", "performance.mark()")}}
-
通过一个给定的名称,将该名称(作为键)和对应的{{domxref("DOMHighResTimeStamp")}}(作为值)保存在一个哈希结构里。该键值对表示了从某一时刻(译者注:某一时刻通常是 navigationStart 事件发生时刻)到记录时刻间隔的毫秒数。(译者注:该方法一般用来多次记录时间,用于求得各记录间的时间差)
-
- -
-
{{domxref("Performance.now()", "performance.now()")}}
-
该方法返回一个{{domxref("DOMHighResTimeStamp")}}对象,该对象表示从某一时刻(译者注:某一时刻通常是 navigationStart 事件发生时刻)到调用该方法时刻的毫秒数。
-
- -

属性

- -
-
{{domxref("Performance.timing", "performance.timing")}}
-
是一个{{domxref("PerformanceTiming")}} 对象,包含延迟相关的性能信息。
-
{{domxref("Performance.navigation", "performance.navigation")}}
-
是一个 {{domxref("PerformanceNavigation")}} 对象,该对象表示在当前给定浏览上下文中网页导航的类型(译者注:TYPE_BACK_FORWARD,TYPE_NAVIGATE, TYPE_RELOAD,TYPE_RESERVED)以及次数。
-
performance.memory
-
在Chrome中添加的一个非标准扩展。
-
-- cgit v1.2.3-54-g00ecf