diff options
author | MDN <actions@users.noreply.github.com> | 2022-03-08 00:12:08 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2022-03-08 00:12:08 +0000 |
commit | d53bae971e455859229bcb3246e29bcbc85179d2 (patch) | |
tree | 396c8a403d46802b365aa8d26183f6b18f2a1c6e /files/fr/conflicting/web/api | |
parent | 0c6e68897d9b4182437d58e376dbb48ee6947f71 (diff) | |
download | translated-content-d53bae971e455859229bcb3246e29bcbc85179d2.tar.gz translated-content-d53bae971e455859229bcb3246e29bcbc85179d2.tar.bz2 translated-content-d53bae971e455859229bcb3246e29bcbc85179d2.zip |
[CRON] sync translated content
Diffstat (limited to 'files/fr/conflicting/web/api')
-rw-r--r-- | files/fr/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/files/fr/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md b/files/fr/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md new file mode 100644 index 0000000000..d1073d834b --- /dev/null +++ b/files/fr/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md @@ -0,0 +1,60 @@ +--- +title: performance.onresourcetimingbufferfull +slug: conflicting/Web/API/Performance/resourcetimingbufferfull_event +tags: + - API + - Method + - Méthode + - Reference + - Performance web +translation_of: Web/API/Performance/onresourcetimingbufferfull +original_slug: Web/API/Performance/onresourcetimingbufferfull +--- +{{APIRef("Resource Timing API")}} + +La propriété **`onresourcetimingbufferfull`** est un gestionnaire d'événements qui sera appelé lorsque l'événement [`resourcetimingbufferfull`](/fr/docs/Web/API/Performance/resourcetimingbufferfull_event) est déclenché. Ce déclenchement a lieu lorsque le tampon de performance de synchronisation des ressources du navigateur est plein. + +{{AvailableInWorkers}} + +## Syntaxe + +```js + callback = performance.onresourcetimingbufferfull = buffer_full_cb; +``` + +### Valeur de retour + +- `callback` + - : Un {{event("Event_handlers", "event handler")}} qui est invoqué lorsque l'événement [`resourcetimingbufferfull`](/fr/docs/Web/API/Performance/resourcetimingbufferfull_event) est déclenché. + +## Exemple + +L'exemple suivant définit une fonction de rappel sur la propriété `onresourcetimingbufferfull`. + +```js +function buffer_full(event) { + console.log("WARNING: Resource Timing Buffer is FULL!"); + performance.setResourceTimingBufferSize(200); +} +function init() { + // Définit un rappel si le tampon de ressources est rempli. + performance.onresourcetimingbufferfull = buffer_full; +} +``` + +## Spécifications + +| Spécification | Statut | Commentaire | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------ | -------------------- | +| {{SpecName('Resource Timing', '#dom-performance-onresourcetimingbufferfull', + 'onresourcetimingbufferfull')}} | {{Spec2('Resource Timing')}} | Définition initiale. | + +## Compatibilité des navigateurs + +{{Compat("api.Performance.onresourcetimingbufferfull")}} + +## Voir aussi + +- Événément [`resourcetimingbufferfull`](/fr/docs/Web/API/Performance/resourcetimingbufferfull_event) +- {{domxref("Performance.clearResourceTimings","Performance.clearResourceTimings()")}} +- {{domxref("Performance.setResourceTimingBufferSize","Performance.setResourceTimingBufferSize()")}} |