{"id":18955010,"url":"https://github.com/alaca/loadcss","last_synced_at":"2026-05-07T07:38:56.738Z","repository":{"id":101128245,"uuid":"109816712","full_name":"alaca/loadCSS","owner":"alaca","description":"Load CSS asynchronously","archived":false,"fork":false,"pushed_at":"2017-11-27T16:41:30.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T22:04:50.900Z","etag":null,"topics":["async","asynchronous","css","javascript","style","stylesheets"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alaca.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-11-07T09:50:45.000Z","updated_at":"2023-03-07T05:17:27.000Z","dependencies_parsed_at":"2023-05-24T16:30:28.591Z","dependency_job_id":null,"html_url":"https://github.com/alaca/loadCSS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaca%2FloadCSS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaca%2FloadCSS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaca%2FloadCSS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaca%2FloadCSS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alaca","download_url":"https://codeload.github.com/alaca/loadCSS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239952637,"owners_count":19723924,"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":["async","asynchronous","css","javascript","style","stylesheets"],"created_at":"2024-11-08T13:46:57.334Z","updated_at":"2026-03-30T17:30:18.199Z","avatar_url":"https://github.com/alaca.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# loadCSS\nLoad CSS asynchronously\n\n### Usage\n```\n\u003clink rel=\"preload\" href=\"mystyle.css\" as=\"style\" onload=\"this.rel='stylesheet'\"\u003e\n\u003cnoscript\u003e\u003clink rel=\"stylesheet\" href=\"mystyle.css\"\u003e\u003c/noscript\u003e\n\n\u003cscript src=\"loadcss.js\"\u003e\u003c/script\u003e\n```\n\n### Manual CSS loading\n```javascript\n\u003cscript\u003e\nloadCSS('mystyle.css', 'all');\n\u003c/script\u003e\n ```\n\n### Using onload event\n```javascript\n\u003cscript\u003e\nloadCSS('mystyle.css', 'all', function(link){\n    console.log(link.href);\n});\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falaca%2Floadcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falaca%2Floadcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falaca%2Floadcss/lists"}