From 2a76c37d0e733dedf8ed87d1e7e46caf3c44667e Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Fri, 30 Jul 2021 20:18:17 +0200 Subject: Prepare JS French section for Markdown (#1574) * Rm IDs w/ [^h\d] id=" * Remove class="hidden" * Remove hidden for code blocks * rm summary classes * Use Note consistently * Remove sup * Rm code in pre * Fixes dd/dt/dl * Fix some more dd * Remove inline style and useless/craft from span/font * h2m report fixing - Consistent use of notes * h2m report fixing - Consistent use of warnings * h2m report fixing - reword one callout * h2m report fixing - array cruft spans hell * Cleaning the rest of docs for md conversion --- .../reference/global_objects/webassembly/compile/index.html | 2 +- .../reference/global_objects/webassembly/compilestreaming/index.html | 2 +- .../javascript/reference/global_objects/webassembly/global/index.html | 2 +- .../reference/global_objects/webassembly/instance/index.html | 2 +- .../reference/global_objects/webassembly/instantiate/index.html | 4 ++-- .../global_objects/webassembly/instantiatestreaming/index.html | 2 +- .../javascript/reference/global_objects/webassembly/memory/index.html | 2 +- .../javascript/reference/global_objects/webassembly/module/index.html | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) (limited to 'files/fr/web/javascript/reference/global_objects/webassembly') diff --git a/files/fr/web/javascript/reference/global_objects/webassembly/compile/index.html b/files/fr/web/javascript/reference/global_objects/webassembly/compile/index.html index 5c5b2689e7..5e98ae5ba7 100644 --- a/files/fr/web/javascript/reference/global_objects/webassembly/compile/index.html +++ b/files/fr/web/javascript/reference/global_objects/webassembly/compile/index.html @@ -51,7 +51,7 @@ fetch('simple.wasm').then(response => );
-

Note : Dans la plupart des cas, mieux vaudra utiliser {{jsxref("WebAssembly.compileStreaming()")}} qui est plus efficace que compile().

+

Note : Dans la plupart des cas, mieux vaudra utiliser {{jsxref("WebAssembly.compileStreaming()")}} qui est plus efficace que compile().

Spécifications

diff --git a/files/fr/web/javascript/reference/global_objects/webassembly/compilestreaming/index.html b/files/fr/web/javascript/reference/global_objects/webassembly/compilestreaming/index.html index 8b3e002db6..539c7b3e2f 100644 --- a/files/fr/web/javascript/reference/global_objects/webassembly/compilestreaming/index.html +++ b/files/fr/web/javascript/reference/global_objects/webassembly/compilestreaming/index.html @@ -67,7 +67,7 @@ WebAssembly.compileStreaming(fetch('simple.wasm')) -

Compatibilité des navigateurs

+

Compatibilité des navigateurs

{{Compat("javascript.builtins.WebAssembly.compileStreaming")}}

diff --git a/files/fr/web/javascript/reference/global_objects/webassembly/global/index.html b/files/fr/web/javascript/reference/global_objects/webassembly/global/index.html index 44269d9639..d31849c70e 100644 --- a/files/fr/web/javascript/reference/global_objects/webassembly/global/index.html +++ b/files/fr/web/javascript/reference/global_objects/webassembly/global/index.html @@ -80,7 +80,7 @@ WebAssembly.instantiateStreaming(fetch('global.wasm'), { js: { global } }) });
-

Note : Cet exemple est utilisable sur GitHub et son code source est également disponible.

+

Note : Cet exemple est utilisable sur GitHub et son code source est également disponible.

Spécifications

diff --git a/files/fr/web/javascript/reference/global_objects/webassembly/instance/index.html b/files/fr/web/javascript/reference/global_objects/webassembly/instance/index.html index 4b4a3aa49d..1fceef26d9 100644 --- a/files/fr/web/javascript/reference/global_objects/webassembly/instance/index.html +++ b/files/fr/web/javascript/reference/global_objects/webassembly/instance/index.html @@ -20,7 +20,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/WebAssembly/Instance

Syntaxe

-

Important : L'instanciation de modules volumineux peut être coûteuse en temps/ressource. Instance() ne doit être utilisée que lorsqu'une instanciation synchrone est nécessaire. Pour tous les autres cas, c'est la méthode {{jsxref("WebAssembly.instantiateStreaming()")}} qui devrait être utilisée.

+

Attention :L'instanciation de modules volumineux peut être coûteuse en temps/ressource. Instance() ne doit être utilisée que lorsqu'une instanciation synchrone est nécessaire. Pour tous les autres cas, c'est la méthode {{jsxref("WebAssembly.instantiateStreaming()")}} qui devrait être utilisée.

var monInstance = new WebAssembly.Instance(module, importObject);
diff --git a/files/fr/web/javascript/reference/global_objects/webassembly/instantiate/index.html b/files/fr/web/javascript/reference/global_objects/webassembly/instantiate/index.html index 1ac25e36e7..5ec32f1f87 100644 --- a/files/fr/web/javascript/reference/global_objects/webassembly/instantiate/index.html +++ b/files/fr/web/javascript/reference/global_objects/webassembly/instantiate/index.html @@ -20,7 +20,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/WebAssembly/instantiate
-

Attention ! Tant que faire se peut, utiliser la méthode {{jsxref("WebAssembly.instantiateStreaming()")}} car elle est plus efficace et récupère, compile et instancie un module en une seule étape à partir du bytecode et il n'est pas nécessaire de passer par une conversion en {{jsxref("ArrayBuffer")}}.

+

Attention : Tant que faire se peut, utiliser la méthode {{jsxref("WebAssembly.instantiateStreaming()")}} car elle est plus efficace et récupère, compile et instancie un module en une seule étape à partir du bytecode et il n'est pas nécessaire de passer par une conversion en {{jsxref("ArrayBuffer")}}.

Syntaxe

@@ -107,7 +107,7 @@ fetch('simple.wasm').then(response => );
-

Note : Voir le fichier index.html sur GitHub (ainsi que la démonstration associée) qui contient un exemple analogue et qui utilise la fonction utilitaire fetchAndInstantiate().

+

Note : Voir le fichier index.html sur GitHub (ainsi que la démonstration associée) qui contient un exemple analogue et qui utilise la fonction utilitaire fetchAndInstantiate().

Seconde forme

diff --git a/files/fr/web/javascript/reference/global_objects/webassembly/instantiatestreaming/index.html b/files/fr/web/javascript/reference/global_objects/webassembly/instantiatestreaming/index.html index 8a9957b9cd..a9cbf1ead2 100644 --- a/files/fr/web/javascript/reference/global_objects/webassembly/instantiatestreaming/index.html +++ b/files/fr/web/javascript/reference/global_objects/webassembly/instantiatestreaming/index.html @@ -74,7 +74,7 @@ WebAssembly.instantiateStreaming(fetch('simple.wasm'), importObject) -

Compatibilité des navigateurs

+

Compatibilité des navigateurs

{{Compat("javascript.builtins.WebAssembly.instantiateStreaming")}}

diff --git a/files/fr/web/javascript/reference/global_objects/webassembly/memory/index.html b/files/fr/web/javascript/reference/global_objects/webassembly/memory/index.html index f5bddd18d6..5c5d36d7cd 100644 --- a/files/fr/web/javascript/reference/global_objects/webassembly/memory/index.html +++ b/files/fr/web/javascript/reference/global_objects/webassembly/memory/index.html @@ -36,7 +36,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/WebAssembly/Memory
-

Note : Une page mémoire WebAssembly correspond à une taille fixe de 65 536 octets, soit environ 64 Ko.

+

Note : Une page mémoire WebAssembly correspond à une taille fixe de 65 536 octets, soit environ 64 Ko.

Exceptions

diff --git a/files/fr/web/javascript/reference/global_objects/webassembly/module/index.html b/files/fr/web/javascript/reference/global_objects/webassembly/module/index.html index 8422e4c9a5..cd6b46e8a9 100644 --- a/files/fr/web/javascript/reference/global_objects/webassembly/module/index.html +++ b/files/fr/web/javascript/reference/global_objects/webassembly/module/index.html @@ -19,7 +19,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/WebAssembly/Module

Syntaxe

-

Important : La compilation de modules volumineux peut être consommatrice de ressources et de temps. Le constructeur Module() doit uniqument être utilisé lorsqu'il faut absolument avoir une compilation  synchrone. Pour tous les autres cas de figures, on privilégiera la méthode asynchrone {{jsxref("WebAssembly.compileStreaming()")}}.

+

Attention : La compilation de modules volumineux peut être consommatrice de ressources et de temps. Le constructeur Module() doit uniqument être utilisé lorsqu'il faut absolument avoir une compilation  synchrone. Pour tous les autres cas de figures, on privilégiera la méthode asynchrone {{jsxref("WebAssembly.compileStreaming()")}}.

var monModule = new WebAssembly.Module(bufferSource);
-- cgit v1.2.3-54-g00ecf