aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/performancenavigationtiming/dominteractive/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/api/performancenavigationtiming/dominteractive/index.md')
-rw-r--r--files/fr/web/api/performancenavigationtiming/dominteractive/index.md52
1 files changed, 21 insertions, 31 deletions
diff --git a/files/fr/web/api/performancenavigationtiming/dominteractive/index.md b/files/fr/web/api/performancenavigationtiming/dominteractive/index.md
index 88045fd7d9..9901953532 100644
--- a/files/fr/web/api/performancenavigationtiming/dominteractive/index.md
+++ b/files/fr/web/api/performancenavigationtiming/dominteractive/index.md
@@ -10,27 +10,30 @@ tags:
- Performance Web
translation_of: Web/API/PerformanceNavigationTiming/domInteractive
---
-<div>{{APIRef("Navigation Timing")}}{{SeeCompatTable}}</div>
+{{APIRef("Navigation Timing")}}{{SeeCompatTable}}
-<p>La propriété en lecture seule <strong><code>domInteractive</code></strong> retourne un <a href="/fr/docs/Web/API/DOMHighResTimeStamp"><code>timestamp</code></a> représentant la valeur temporelle égale au temps immédiatement avant que l'agent utilisateur ne définisse la disponibilité du document actuel à <a href="https://html.spec.whatwg.org/multipage/syntax.html#the-end">interactif</a>.</p>
+La propriété en lecture seule **`domInteractive`** retourne un [`timestamp`](/fr/docs/Web/API/DOMHighResTimeStamp) représentant la valeur temporelle égale au temps immédiatement avant que l'agent utilisateur ne définisse la disponibilité du document actuel à [interactif](https://html.spec.whatwg.org/multipage/syntax.html#the-end).
-<h2 id="Syntax">Syntaxe</h2>
+## Syntaxe
-<pre class="brush: js"><var>perfEntry</var>.domInteractive;</pre>
+```js
+perfEntry.domInteractive;
+```
-<h3 id="Return_Value">Valeur de retour</h3>
+### Valeur de retour
-<p>Une <a href="/fr/docs/Web/API/DOMHighResTimeStamp"><code>timestamp</code></a> représentant la valeur temporelle égale au temps immédiatement avant que l'agent utilisateur ne définisse la disponibilité du document actuel à <a href="https://html.spec.whatwg.org/multipage/syntax.html#the-end">interactif</a>.</p>
+Une [`timestamp`](/fr/docs/Web/API/DOMHighResTimeStamp) représentant la valeur temporelle égale au temps immédiatement avant que l'agent utilisateur ne définisse la disponibilité du document actuel à [interactif](https://html.spec.whatwg.org/multipage/syntax.html#the-end).
-<h2 id="Example">Exemple</h2>
+## Exemple
-<p>L'exemple suivant illustre l'utilisation de cette propriété.</p>
+L'exemple suivant illustre l'utilisation de cette propriété.
-<pre class="brush:js">function print_nav_timing_data() {
+```js
+function print_nav_timing_data() {
// Utilise getEntriesByType() pour obtenir uniquement les événements de type "navigation".
let perfEntries = performance.getEntriesByType("navigation");
- for (let i =0; i &lt; perfEntries.length; i++) {
+ for (let i =0; i < perfEntries.length; i++) {
console.log("= Entrée de navigation : entry[" + i + "]");
let p = perfEntries[i];
// propriétés du DOM
@@ -47,28 +50,15 @@ translation_of: Web/API/PerformanceNavigationTiming/domInteractive
console.log("redirectCount = " + p.redirectCount);
}
}
-</pre>
+```
-<h2 id="Specifications">Spécifications</h2>
+## Spécifications
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Spécification</th>
- <th scope="col">Statut</th>
- <th scope="col">Commentaire</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('Navigation Timing Level 2',
- '#dom-performancenavigationtiming-dominteractive', 'domInteractive')}}</td>
- <td>{{Spec2('Navigation Timing Level 2')}}</td>
- <td>Définition initiale.</td>
- </tr>
- </tbody>
-</table>
+| Spécification | Statut | Commentaire |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------- | -------------------- |
+| {{SpecName('Navigation Timing Level 2',
+ '#dom-performancenavigationtiming-dominteractive', 'domInteractive')}} | {{Spec2('Navigation Timing Level 2')}} | Définition initiale. |
-<h2 id="Browser_compatibility">Compatibilité des navigateurs</h2>
+## Compatibilité des navigateurs
-<p>{{Compat("api.PerformanceNavigationTiming.domInteractive")}}</p>
+{{Compat("api.PerformanceNavigationTiming.domInteractive")}}