aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/performance/resourcetimingbufferfull_event
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-10-02 17:20:24 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-02 17:30:20 +0200
commit1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde (patch)
tree30a56efd3eff3a01bd1611e1840fdbbfacf544a4 /files/fr/web/api/performance/resourcetimingbufferfull_event
parentc05efa8d7ae464235cf83d7c0956e42dc6974103 (diff)
downloadtranslated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.tar.gz
translated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.tar.bz2
translated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.zip
convert content to md
Diffstat (limited to 'files/fr/web/api/performance/resourcetimingbufferfull_event')
-rw-r--r--files/fr/web/api/performance/resourcetimingbufferfull_event/index.md94
1 files changed, 43 insertions, 51 deletions
diff --git a/files/fr/web/api/performance/resourcetimingbufferfull_event/index.md b/files/fr/web/api/performance/resourcetimingbufferfull_event/index.md
index d23ab10aaf..e8d0020053 100644
--- a/files/fr/web/api/performance/resourcetimingbufferfull_event/index.md
+++ b/files/fr/web/api/performance/resourcetimingbufferfull_event/index.md
@@ -11,36 +11,41 @@ tags:
- onresourcetimingbufferfull
translation_of: Web/API/Performance/resourcetimingbufferfull_event
---
-<div>{{APIRef}}</div>
+{{APIRef}}
-<p>L'événement <code>resourcetimingbufferfull</code> se déclenche lorsque la mémoire <a href="/fr/docs/Web/API/Performance/setResourceTimingBufferSize">tampon de synchronisation des ressources</a> du navigateur est pleine.</p>
+L'événement `resourcetimingbufferfull` se déclenche lorsque la mémoire [tampon de synchronisation des ressources](/fr/docs/Web/API/Performance/setResourceTimingBufferSize) du navigateur est pleine.
<table class="properties">
- <tbody>
- <tr>
- <th scope="row">Propagation</th>
- <td>Oui</td>
- </tr>
- <tr>
- <th scope="row">Annulable</th>
- <td>Oui</td>
- </tr>
- <tr>
- <th scope="row">Interface</th>
- <td>{{domxref("Event")}}</td>
- </tr>
- <tr>
- <th scope="row">Propriété pour le gestionnaire d'événements correspondant</th>
- <td>{{domxref("Performance.onresourcetimingbufferfull", "onresourcetimingbufferfull")}}</td>
- </tr>
- </tbody>
+ <tbody>
+ <tr>
+ <th scope="row">Propagation</th>
+ <td>Oui</td>
+ </tr>
+ <tr>
+ <th scope="row">Annulable</th>
+ <td>Oui</td>
+ </tr>
+ <tr>
+ <th scope="row">Interface</th>
+ <td>{{domxref("Event")}}</td>
+ </tr>
+ <tr>
+ <th scope="row">
+ Propriété pour le gestionnaire d'événements correspondant
+ </th>
+ <td>
+ {{domxref("Performance.onresourcetimingbufferfull", "onresourcetimingbufferfull")}}
+ </td>
+ </tr>
+ </tbody>
</table>
-<h2 id="Examples">Exemples</h2>
+## Exemples
-<p>L'exemple suivant définit une fonction de rappel sur la propriété <code>onresourcetimingbufferfull</code>.</p>
+L'exemple suivant définit une fonction de rappel sur la propriété `onresourcetimingbufferfull`.
-<pre class="brush: js">function buffer_full(event) {
+```js
+function buffer_full(event) {
console.log("AVERTISSEMENT : La mémoire tampon des ressources est COMPLÈTE !");
performance.setResourceTimingBufferSize(200);
}
@@ -48,39 +53,26 @@ function init() {
// Définit un rappel si le tampon de ressources est rempli.
performance.onresourcetimingbufferfull = buffer_full;
}
-&lt;body onload="init()"&gt;</pre>
+<body onload="init()">
+```
-<p>Notez que vous pouvez également configurer le gestionnaire à l'aide de la fonction addEventListener() :</p>
+Notez que vous pouvez également configurer le gestionnaire à l'aide de la fonction addEventListener() :
-<pre class="brush: js">performance.addEventListener('resourcetimingbufferfull', buffer_full);
-</pre>
+```js
+performance.addEventListener('resourcetimingbufferfull', buffer_full);
+```
-<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('Resource Timing', '#dom-performance-onresourcetimingbufferfull', 'onresourcetimingbufferfull')}}</td>
- <td>{{Spec2('Resource Timing')}}</td>
- <td>Définition initialen.</td>
- </tr>
- </tbody>
-</table>
+| Spécification | Statut | Commentaire |
+| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------ | --------------------- |
+| {{SpecName('Resource Timing', '#dom-performance-onresourcetimingbufferfull', 'onresourcetimingbufferfull')}} | {{Spec2('Resource Timing')}} | Définition initialen. |
-<h2 id="Browser_compatibility">Compatibilité des navigateurs</h2>
+## Compatibilité des navigateurs
-<p>{{Compat("api.Performance.resourcetimingbufferfull_event")}}</p>
+{{Compat("api.Performance.resourcetimingbufferfull_event")}}
-<h2 id="See_also">Voir aussi</h2>
+## Voir aussi
-<ul>
- <li>{{domxref("Performance.clearResourceTimings","Performance.clearResourceTimings()")}}</li>
- <li>{{domxref("Performance.setResourceTimingBufferSize","Performance.setResourceTimingBufferSize()")}}</li>
-</ul>
+- {{domxref("Performance.clearResourceTimings","Performance.clearResourceTimings()")}}
+- {{domxref("Performance.setResourceTimingBufferSize","Performance.setResourceTimingBufferSize()")}}