https://github.com/csswizardry/ct Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Issues - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} csswizardry / ct Public * Notifications * Star 816 * Fork 26 * Let's take a look inside your
... csswizardry.com/ct/ 816 stars 26 forks Star Notifications * Code * Issues 2 * Pull requests 2 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 1 branch 0 tags Code Latest commit @csswizardry csswizardry Add longer description to homepage ... 1f0a063 Sep 21, 2021 Add longer description to homepage 1f0a063 Git stats * 41 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time test Add longer description to homepage Sep 21, 2021 README.md Add longer description to homepage Sep 21, 2021 chrome-snippet.png Correct snippet screenshot Sep 21, 2021 ct.css Add new redundant async or defer check Sep 19, 2021 demo.png Better screenshot Sep 21, 2021 index.html Add longer description to homepage Sep 21, 2021 View code ct.css - Let's take a look inside your Example Output Simple Usage Chrome Snippet Limitations README.md ct.css - Let's take a look inside your Computed tomography of the head uses a series of X-rays in a CT scan of the head... -- wikipedia.org/Computed_tomography_of_the_head Your is the single biggest render-blocking part of your page--ensuring it is well-formed is critical. ct.css is a diagnostic CSS snippet that exposes potential performance issues in your page's tags. Example Output [demo] * Red: This is an error and should be addressed. * Orange: This could be problematic in certain scenarios. * Green: This is fine and is purely informational. * Solid: This file is the problem. * Dashed: Another file(s) are causing problems with this file. Simple Usage Paste this anywhere in your HTML: Chrome Snippet [chrome-sni] Run Snippets Of JavaScript On Any Page With Chrome DevTools (function(){ var ct = document.createElement('link'); ct.rel = 'stylesheet'; ct.href = 'https://csswizardry.com/ct/ct.css'; ct.classList.add('ct'); document.head.appendChild(ct); }()); Limitations * Non-matching media types: Currently, ct.css only takes print stylesheets into account. This means that you may experience false-positives for other non-blocking stylesheets. * Injected script elements: ct.css, as with all CSS, acts against the DOM and not the HTML. As such, injected script elements will be falsely flagged as blocking. + Similarly, any script elements that are removed from the DOM will not be flagged. * Third-party blocking resources: The check for whether or not something is a third party is naive at best. * CSP Issues: If your app is blocking CSS from the csswizardry.com origin, either self-host the ct.css file, or paste its contents into tags anywhere in your page. About Let's take a look inside your ... csswizardry.com/ct/ Resources Readme Releases No releases published Packages 0 No packages published Used by 1 * @dnb-org @dnb-org / components Languages * CSS 61.7% * HTML 38.1% * JavaScript 0.2% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.