Skip to content

Commit

Permalink
Optimise preloading from Google Web Fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
liweiyap committed Dec 9, 2021
1 parent abfd749 commit de0f62c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<link rel="stylesheet" href="../assets/css/poole.css">
<link rel="stylesheet" href="../assets/css/syntax.css">
<link rel="stylesheet" href="../assets/css/hyde.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface|Inconsolata">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface|Inconsolata">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="styleSheet" href="../assets/css/n-carousel.min.css">
Expand Down
6 changes: 3 additions & 3 deletions assets/js/typewriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ typewriter
.typeString('<br/>')
.typeString('<span style="color:greenyellow;font-family:Inconsolata;font-size:90%;">text-popover-macOS .. | 125</span>')
.typeString('<br/>')
.typeString('<span style="color:greenyellow;font-family:Inconsolata;font-size:90%;">LeetCode_Solutions .. | 106</span>')
.typeString('<span style="color:greenyellow;font-family:Inconsolata;font-size:90%;">LeetCode_Solutions .. | 109</span>')
.typeString('<br/>')
.typeString('<span style="color:greenyellow;font-family:Inconsolata;font-size:90%;">liweiyap.github.io .. | 82</span>')
.typeString('<span style="color:greenyellow;font-family:Inconsolata;font-size:90%;">liweiyap.github.io .. | 89</span>')
.typeString('<br/>')
.typeString('<span style="color:greenyellow;font-family:Inconsolata;font-size:90%;">narradir-android .... | 66</span>')
.typeString('<br/>')
Expand Down Expand Up @@ -47,6 +47,6 @@ typewriter
.typeString('<br/><br/>')
.typeString('<span style="color:greenyellow;font-family:Inconsolata;font-size:90%;">Total repositories: 18</span>')
.typeString('<br/>')
.typeString('<span style="color:greenyellow;font-family:Inconsolata;font-size:90%;">Total commits: 754</span>')
.typeString('<span style="color:greenyellow;font-family:Inconsolata;font-size:90%;">Total commits: 764</span>')
.typeString('<span style="color:greenyellow;font-family:Inconsolata;font-size:90%;"><br/><br/>$</span>')
.start();

0 comments on commit de0f62c

Please sign in to comment.