{"id":24289297,"url":"https://github.com/rla/knockoutjs-load","last_synced_at":"2026-03-09T11:03:15.020Z","repository":{"id":147869233,"uuid":"54129558","full_name":"rla/knockoutjs-load","owner":"rla","description":"KnockoutJS example code to show spinner while loading page","archived":false,"fork":false,"pushed_at":"2016-03-17T19:36:57.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-08T18:53:14.167Z","etag":null,"topics":["knockoutjs","spinner"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/rla.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-03-17T15:29:59.000Z","updated_at":"2023-03-04T06:28:30.000Z","dependencies_parsed_at":"2023-05-27T18:15:13.617Z","dependency_job_id":null,"html_url":"https://github.com/rla/knockoutjs-load","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rla/knockoutjs-load","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fknockoutjs-load","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fknockoutjs-load/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fknockoutjs-load/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fknockoutjs-load/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rla","download_url":"https://codeload.github.com/rla/knockoutjs-load/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fknockoutjs-load/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30291844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["knockoutjs","spinner"],"created_at":"2025-01-16T10:51:50.398Z","updated_at":"2026-03-09T11:03:14.987Z","avatar_url":"https://github.com/rla.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"KnockoutJS example code to show a CSS spinner before loading\nrest of the page, scripts and data. This is done without\nflickering (showing part of markup that is meant to be used as\nKnockoutJS template).\n\n## How it works\n\nPage loading flow:\n\n * Browser loads page up to the spinner\n * Browser displays the spinner\n * Browser loads rest of page, including scripts\n * Part of page used for KnockoutJS template is not shown\n * Scripts load some data\n * KnockoutJS model is bound\n * View is rendered and the spinner is automatically hidden\n\nSpinner is wrapped into conditional KnockoutJS tags. These tags\nhave no effect until `ko.applyBindings` is called:\n\n```html\n\u003c!-- ko if: false --\u003e\n    \u003cdiv class=\"loader\"\u003e\u003c/div\u003e\n\u003c!-- /ko --\u003e\n```\n\nOnce `ko.applyBindings` is called, the conditional tags become active\nand the loader spinner element is removed from the page DOM by\nKnockoutJS.\n\nRest of the page is wrapped into element that has CSS property\n`display: none` set by a class `hide`. This hides the content until\nthe class is removed:\n\n```html\n\u003cdiv data-bind=\"css: { hide: false }\" class=\"hide\"\u003e\n    Message: \u003cspan data-bind=\"text: message\"\u003e\u003c/span\u003e\n\u003c/div\u003e\n```\n\nThe class is automatically removed when bindings are applied by\n`ko.applyBindings`. This is achieved through the built-in `css` binding.\n\nCSS spinner code was taken from \u003chttp://projects.lukehaas.me/css-loaders/\u003e.\n\n## Demo\n\nVisit \u003chttp://demos.rlaanemets.com/knockoutjs-load/\u003e.\n\n## License\n\nThe MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frla%2Fknockoutjs-load","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frla%2Fknockoutjs-load","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frla%2Fknockoutjs-load/lists"}