Skip to main content
100%

Fork of loading and parsing csv data part 2 await/async - ep 13

✓ Published1🌍 Public
Ssurikmeetr
Last edited Mar 17, 2021
Created on Mar 3, 2021

This example demonstrates asynchronous loading of a CSV file from a GitHub Gist using JavaScript’s `async/await` syntax within a minimal HTML page. The page displays no visual output; instead, the fetched text is logged to the browser console. The code uses the native `fetch` API to retrieve the remote `css_colors.csv` file, then `response.text()` to extract its contents. A large `13em` body font size is set via CSS, but no rendering or charting library, such as D3, is employed.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes