Skip to content

Commit

Permalink
Revert "Add preconnect checks"
Browse files Browse the repository at this point in the history
This reverts commit eddda8d.
  • Loading branch information
csswizardry committed Jan 7, 2021
1 parent eddda8d commit e2b3db9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
28 changes: 1 addition & 27 deletions ct.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,12 @@ html {

head,
head script,
head style, head [rel="stylesheet"],
head [rel="dns-prefetch"],
head [rel="preconnect"]:nth-of-type(n+4) {
head style, head [rel="stylesheet"] {
display: block;
}

head script,
head style, head [rel="stylesheet"],
head [rel="dns-prefetch"],
head [rel="preconnect"]:nth-of-type(n+4),
head title {
margin: 5px;
padding: 5px;
Expand All @@ -67,28 +63,6 @@ head ::before {



/**
* Check for potentially troublesome resource hints.
*/

head [rel="dns-prefetch"],
head [rel="preconnect"]:nth-of-type(n+4) {
border-style: var(--ct-is-problematic);
border-color: var(--ct-warn)
}

head [rel="dns-prefetch"]::before {
content: "[dns-prefetch is legacy: prefer preconnect – " attr(href) "]"
}

head [rel="preconnect"]:nth-of-type(n+4)::before {
content: "[More than 2 preconnects – " attr(href) "]"
}





/**
* External Script and Style
*/
Expand Down
8 changes: 0 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0" />

<link rel="dns-prefetch" href="https://one.com" />

<link rel="preconnect" href="https://one.com" />
<link rel="preconnect" href="https://two.com" />
<link rel="preconnect" href="https://three.com" />
<link rel="preconnect" href="https://four.com" />
<link rel="preconnect" href="https://five.com" />

<link rel="stylesheet" href="./ct.css" class="ct" />

<link rel="stylesheet" href="./style?print" media="print" />
Expand Down

0 comments on commit e2b3db9

Please sign in to comment.