Commit 0847211a authored by Siltaar's avatar Siltaar
Browse files

add async/await loading technic

parent 3fd70091
......@@ -35,6 +35,17 @@ month_nb('août', month_nb_json);
Another version, using `async`/`await` :
(async () => {
"use strict"
let month_nb_json = await fetch("js/month_nb/month_nb.json")
month_nb_json = await month_nb_json.json()
== Architecture
`month_nb.js` only contains a loop going through a JSON tree data structure
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment