@@ -197,10 +197,8 @@ Pyodide and MicroPython. It is closely modelled on the
197197[ Fetch API] ( https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API ) found
198198in browsers with some important Pythonic differences.
199199
200- The simple use case is to pass in a URL and ` await ` the response. Remember, in
201- order to use ` await ` you must have the ` async ` attribute in the ` script ` tag
202- that references your code. If this request is in a function, that function
203- should also be defined as ` async ` .
200+ The simple use case is to pass in a URL and ` await ` the response. If this
201+ request is in a function, that function should also be defined as ` async ` .
204202
205203``` python title="A simple HTTP GET with pyscript.fetch"
206204from pyscript import fetch
@@ -834,7 +832,7 @@ While over on the main thread, this fragment of MicroPython will be able to
834832access the worker's ` version ` function via the ` workers ` reference:
835833
836834``` html
837- <script type =" mpy" async >
835+ <script type =" mpy" >
838836from pyscript import workers
839837
840838pyworker = await workers[" py-version" ]
@@ -853,7 +851,7 @@ Should you wish to await for all workers on the page at load time, it's
853851possible to loop over matching elements in the document like this:
854852
855853``` html
856- <script type =" mpy" async >
854+ <script type =" mpy" >
857855from pyscript import document, workers
858856
859857for el in document .querySelectorAll (" [type='py'][worker][name]" ):
@@ -872,7 +870,7 @@ an asynchronous way to import packages that were not originally referenced in
872870your configuration.
873871
874872``` html title="A pyscript.js_import example."
875- <script type =" py" async >
873+ <script type =" py" >
876874from pyscript import js_import, window
877875
878876escaper, = await js_import (" https://esm.run/html-escaper" )
@@ -899,7 +897,7 @@ asynchronous way to import packages that were not originally referenced in your
899897configuration.
900898
901899` ` ` html title= " A pyscript.py_import example."
902- < script type= " py" async >
900+ < script type= " py" >
903901from pyscript import py_import
904902
905903matplotlib, regex, = await py_import (" matplotlib" , " regex" )
0 commit comments