{"id":13428452,"url":"https://github.com/csswizardry/ct","last_synced_at":"2025-05-16T01:06:11.104Z","repository":{"id":44726667,"uuid":"327332641","full_name":"csswizardry/ct","owner":"csswizardry","description":"Let’s take a look inside your \u003chead\u003e…","archived":false,"fork":false,"pushed_at":"2023-06-21T14:17:26.000Z","size":1029,"stargazers_count":1890,"open_issues_count":7,"forks_count":47,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-05-12T23:14:24.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://csswizardry.com/ct/","language":"CSS","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/csswizardry.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}},"created_at":"2021-01-06T14:15:40.000Z","updated_at":"2025-05-06T22:05:59.000Z","dependencies_parsed_at":"2024-01-14T03:31:32.090Z","dependency_job_id":"d1d0db3b-cef9-4a9b-9855-8e5eac7cec50","html_url":"https://github.com/csswizardry/ct","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/csswizardry%2Fct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csswizardry%2Fct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csswizardry%2Fct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csswizardry%2Fct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csswizardry","download_url":"https://codeload.github.com/csswizardry/ct/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448579,"owners_count":22072764,"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-07-31T01:00:57.593Z","updated_at":"2025-05-16T01:06:06.084Z","avatar_url":"https://github.com/csswizardry.png","language":"CSS","funding_links":[],"categories":["CSS","Third Party Sources"],"sub_categories":[],"readme":"# 🧠 `ct.css` – Let’s take a look inside your `\u003chead\u003e`\n\n\u003e Computed tomography of the head uses a series of X-rays in a CT scan of the\n\u003e head…  \n\u003e — [wikipedia.org/Computed_tomography_of_the_head](https://en.wikipedia.org/wiki/Computed_tomography_of_the_head)\n\nYour `\u003chead\u003e` is the single biggest render-blocking part of your page—ensuring\nit is well-formed is critical. `ct.css` is a diagnostic CSS snippet that exposes\npotential performance issues in your page’s `\u003chead\u003e` tags.\n\n## Example Output\n\n![](./demo.png)\n\n* **Red:** This is an error and should be addressed.\n* **Orange:** This could be problematic in certain scenarios.\n* **Green:** This is fine and is purely informational.\n* **Solid:** This file is the problem.\n* **Dashed:** Another file(s) are causing problems with this file.\n\n## Simple Usage\n\nPaste this anywhere in your HTML:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://csswizardry.com/ct/ct.css\" class=\"ct\" /\u003e\n```\n\n## Chrome Snippet\n\n![](./chrome-snippet.png)\n\n[_Run Snippets Of JavaScript On Any Page With Chrome DevTools_](https://developers.google.com/web/tools/chrome-devtools/javascript/snippets)\n\n```\n(function(){\n  var ct = document.createElement('link');\n  ct.rel = 'stylesheet';\n  ct.href = 'https://csswizardry.com/ct/ct.css';\n  ct.classList.add('ct');\n  document.head.appendChild(ct);\n}());\n```\n\n## Limitations\n\n* **Non-matching `media` types:** Currently, `ct.css` only takes print\n  stylesheets into account. This means that you may experience false-positives\n  for other non-blocking stylesheets.\n* **Injected `script` elements:** `ct.css`, as with all CSS, acts against the\n  DOM and not the HTML. As such, injected `script` elements will be falsely\n  flagged as blocking.\n  * Similarly, any `script` elements that are removed from the DOM will not be\n    flagged.\n* **Third-party blocking resources:** The check for whether or not something is\n  a third party is naive at best.\n* **CSP Issues:** If your app is blocking CSS from the `csswizardry.com` origin,\n  either self-host the `ct.css` file, or paste its contents into `\u003cstyle\n  class=\"ct\"\u003e…\u003c/style\u003e` tags anywhere in your page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsswizardry%2Fct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsswizardry%2Fct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsswizardry%2Fct/lists"}