File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 7
7
<meta name =" fullcss" content =" /_css/all.css" >
8
8
9
9
< ?php
10
- if( is_null( $_GET[ "nocrit" ] ) ) {
10
+ $critical = @file_get_contents("_css/critical.css" );
11
+ $criticalCssNotEmpty = $critical !== false && strlen($critical) !== 0;
12
+ if( is_null( $_GET[ "nocrit" ] ) && $criticalCssNotEmpty ) {
11
13
echo "<style >";
12
- include( "_css/ critical.css" ) ;
14
+ echo $ critical;
13
15
echo "</style > ";
14
16
} else {
15
17
echo '<link rel ="stylesheet " href ="/_css /all .css ">';
Original file line number Diff line number Diff line change 33
33
34
34
<nav class =" social" >
35
35
<a class =" no-txt twitter" href =" https://twitter.com/respimg" >The RICG on Twitter</a >
36
+ <a href =" https://ricg-slack.herokuapp.com" ><img src =" https://ricg-slack.herokuapp.com/badge.svg" alt =" Join the RICG on Slack" ></a >
36
37
</nav >
37
38
</div >
38
39
You can’t perform that action at this time.
0 commit comments