Load Data
✓ Published0🌍 Public
This example demonstrates how to fetch and display the raw contents of a CSV file in the browser console. It loads a list of CSS named colors from a GitHub gist using the native `fetch` API, converts the response to text with `response.text()`, and logs it via `console.log`. The code uses an asynchronous `async`/`await` pattern within a `fetchText` function, and the script is embedded directly in an `index.html` page without any external libraries or frameworks.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed