Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data with fetch,promise, async and await

Public visualization

Loading data with fetch,promise, async and await

0 stars0🌍 Public
PPramod Jacob Sam
Last edited Nov 21, 2021
Created on Nov 21, 2021
Forked from Hello HTML

This example demonstrates how to load external data using modern JavaScript syntax. A page fetches a CSV file containing CSS named colors from a GitHub gist and logs the raw text to the browser console. The code uses the Fetch API and the Promise method `then()`, combined with `async` and `await` inside an asynchronous function to handle the response. No visualization is rendered; the focus is solely on asynchronous data loading and text retrieval.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed