aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/performanceelementtiming/url/index.html
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-10-02 17:20:14 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-02 17:30:20 +0200
commitc05efa8d7ae464235cf83d7c0956e42dc6974103 (patch)
tree6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/performanceelementtiming/url/index.html
parent13a5e017558b248ee1647d4a5825f183b51f09ad (diff)
downloadtranslated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/performanceelementtiming/url/index.html')
-rw-r--r--files/fr/web/api/performanceelementtiming/url/index.html64
1 files changed, 0 insertions, 64 deletions
diff --git a/files/fr/web/api/performanceelementtiming/url/index.html b/files/fr/web/api/performanceelementtiming/url/index.html
deleted file mode 100644
index 6828122328..0000000000
--- a/files/fr/web/api/performanceelementtiming/url/index.html
+++ /dev/null
@@ -1,64 +0,0 @@
----
-title: PerformanceElementTiming.url
-slug: Web/API/PerformanceElementTiming/url
-tags:
- - API
- - Property
- - Propriété
- - Reference
- - url
- - PerformanceElementTiming
-translation_of: Web/API/PerformanceElementTiming/url
----
-<div>{{APIRef("Element Timing API")}}</div>
-
-<p>La propriété en lecture seule <strong><code>url</code></strong> de l'interface <a href="/fr/docs/Web/API/PerformanceElementTiming"><code>PerformanceElementTiming</code></a> renvoie l'URL initiale de la demande de ressource lorsque l'élément est une image.</p>
-
-<h2 id="Syntax">Syntaxe</h2>
-
-<pre class="brush:js">var <var>url</var> = <var>PerformanceElementTiming</var>.url;</pre>
-
-<h3>Valeur</h3>
-<p>Une <a href="/fr/docs/Web/API/DOMString"><code>DOMString</code></a> qui est l'URL initiale de la demande de ressources pour les images ou 0 pour le texte.</p>
-
-<h2 id="Examples">Exemples</h2>
-
-<p>Dans cet exemple, appeler <code>entry.url</code> renvoie <code>https://example.com/image.jpg</code>.</p>
-
-<pre class="brush:html">&lt;img src="https://example.com/image.jpg" alt="une belle imahe" elementtiming="big-image" id="myImage"&gt;</pre>
-
-<pre class="brush:js">const <var>observer</var> = new PerformanceObserver((list) => {
- let <var>entries</var> = list.getEntries().forEach(function (entry) {
- if (entry.identifier === "big-image") {
- console.log(entry.url);
- }
- });
-});
-observer.observe({ entryTypes: ["element"] });</pre>
-
-<div class="note">
- <p><strong>Note :</strong> Cet exemple utilise l'interface <a href="/fr/docs/Web/API/PerformanceObserver"><code>PerformanceObserver</code></a> pour créer une liste d'événements de mesure des performances. Dans notre cas, nous observons l'élément <a href="/fr/docs/Web/API/PerformanceEntry/entryType"><code>PerformanceEntry.entryType</code></a> afin d'utiliser l'interface <code>PerformanceElementTiming</code>.</p>
-</div>
-
-<h2 id="Specifications">Spécifications</h2>
-
-<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('Element Timing API','#dom-performanceelementtiming-url','PerformanceElementTiming.url')}}</td>
- <td>{{Spec2('Element Timing API')}}</td>
- <td>Définition initiale.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Compatibilité des navigateurs</h2>
-
-<p>{{Compat("api.PerformanceElementTiming.url")}}</p>