{"id":17033051,"url":"https://github.com/up9cloud/css.js","last_synced_at":"2026-04-17T17:32:25.955Z","repository":{"id":19589031,"uuid":"22839307","full_name":"up9cloud/css.js","owner":"up9cloud","description":"load or remove css. For change website theme.","archived":false,"fork":false,"pushed_at":"2014-08-31T11:51:22.000Z","size":228,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-22T21:20:21.254Z","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/up9cloud.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}},"created_at":"2014-08-11T13:07:39.000Z","updated_at":"2014-08-11T16:51:59.000Z","dependencies_parsed_at":"2022-08-24T13:55:42.801Z","dependency_job_id":null,"html_url":"https://github.com/up9cloud/css.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/up9cloud/css.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fcss.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fcss.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fcss.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fcss.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/up9cloud","download_url":"https://codeload.github.com/up9cloud/css.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fcss.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31938710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-10-14T08:31:56.691Z","updated_at":"2026-04-17T17:32:25.937Z","avatar_url":"https://github.com/up9cloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"$css.js\n======\n\nCreate or remove css link node.\n\nInfluenced by [$script]\n\n\n#[Live demo][demo]\n\n#Download\n\n```sh\nwget 'https://raw.githubusercontent.com/up9cloud/css.js/master/dist/$css.min.js'\n```\n\n#Usage\n\nCreate a css link.\n```js\n$css('bootstrap.css')\n//\u003clink rel=\"stylesheet\" href=\"bootstrap.min.css\"\u003e\n```\n\nCreate css links more than one.\n```js\n$css(['bootstrap.css', 'another-bootstrap.css'])\n//\u003clink rel=\"stylesheet\" href=\"bootstrap.min.css\"\u003e\n//\u003clink rel=\"stylesheet\" href=\"another-bootstrap.css\"\u003e\n```\n\nRemove the links have href=?\n```js\n$css.remove(['bootstrap.css', 'another-bootstrap.css'])\n```\n\nCallback\n```js\n$css('bootstrap.css',function(){\n    //do something after css loaded.\n})\n```\n\n#Development\n\n- install [nodejs] and npm first.\n```\nclone https://github.com/up9cloud/css.js.git\ncd css.js \u0026\u0026 npm install\n```\n\n- watch file\n```\ngrunt dev\n```\n\n##Test\n```\nkarma start\n```\n\n##Different browsers?\n\n[To ensure css link is loaded][when css loaded]\n\n\n[demo]:htts://demo.up9cloud.net/css.js/\n[$script]:https://github.com/ded/script.js\n[when css loaded]:http://www.phpied.com/when-is-a-stylesheet-really-loaded/\n[nodejs]:http://nodejs.org/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fup9cloud%2Fcss.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fup9cloud%2Fcss.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fup9cloud%2Fcss.js/lists"}