Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cfware/loading

Display a loading spinner until the `loaded` attribute is set to the document body.
https://github.com/cfware/loading

Last synced: about 2 months ago
JSON representation

Display a loading spinner until the `loaded` attribute is set to the document body.

Awesome Lists containing this project

README

        

# @cfware/loading [![NPM Version][npm-image]][npm-url]

Display a loading spinner until the `loaded` attribute is set to the document body.

## Usage

Create `loading.js`:
```js
import '@cfware/loading';
```

Create `index.html`:
```html






```

Create `app.js`, ensure it runs `document.body.setAttribute('loaded', '')` when the
application is ready to be displayed.

[npm-image]: https://img.shields.io/npm/v/@cfware/loading.svg
[npm-url]: https://npmjs.org/package/@cfware/loading