{"id":21565133,"url":"https://github.com/cfware/loading","last_synced_at":"2025-03-18T05:17:31.089Z","repository":{"id":57101040,"uuid":"297753173","full_name":"cfware/loading","owner":"cfware","description":"Display a loading spinner until the `loaded` attribute is set to the document body.","archived":false,"fork":false,"pushed_at":"2023-10-16T21:49:16.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T17:51:43.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-22T19:36:17.000Z","updated_at":"2022-08-13T17:26:58.000Z","dependencies_parsed_at":"2025-01-24T11:53:57.702Z","dependency_job_id":null,"html_url":"https://github.com/cfware/loading","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Floading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Floading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Floading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Floading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfware","download_url":"https://codeload.github.com/cfware/loading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244160055,"owners_count":20408021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T10:18:32.282Z","updated_at":"2025-03-18T05:17:31.066Z","avatar_url":"https://github.com/cfware.png","language":"JavaScript","readme":"# @cfware/loading [![NPM Version][npm-image]][npm-url]\n\nDisplay a loading spinner until the `loaded` attribute is set to the document body.\n\n## Usage\n\nCreate `loading.js`:\n```js\nimport '@cfware/loading';\n```\n\nCreate `index.html`:\n```html\n\u003c!doctype html\u003e\n\u003chtml lang=\"en-US\"\u003e\n\t\u003chead\u003e\n\t\t\u003cmeta charset=\"utf-8\"\u003e\n\n\t\t\u003cscript type=\"module\" src=\"loading.js\"\u003e\u003c/script\u003e\n\t\t\u003cscript type=\"module\" defer src=\"app.js\"\u003e\u003c/script\u003e\n\t\u003c/head\u003e\n\t\u003cbody\u003e\n\t\u003c/body\u003e\n\u003c/html\u003e\n```\n\nCreate `app.js`, ensure it runs `document.body.setAttribute('loaded', '')` when the\napplication is ready to be displayed.\n\n[npm-image]: https://img.shields.io/npm/v/@cfware/loading.svg\n[npm-url]: https://npmjs.org/package/@cfware/loading\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Floading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfware%2Floading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Floading/lists"}