-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
164 lines (135 loc) · 5.32 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!doctype html>
<html>
<head>
<title>Deferred Styles Demo</title>
<meta charset="utf-8">
<noscript class="deferred styles">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.1/semantic.min.css" />
</noscript>
<noscript>
<style>.hidden-no-js { display: none !important }</style>
</noscript>
<!-- Critical CSS goes here -->
<style>
body.demo>.pusher {
display: flex;
background: #efefef !important;
}
.loading.progress {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 9999;
display: grid;
background-color: #333;
}
.loading.progress>.spinner {
margin: auto;
}
.dual-ring {
display: inline-block;
width: 64px;
height: 64px;
}
.dual-ring:after {
content: " ";
display: block;
width: 46px;
height: 46px;
margin: 1px;
border-radius: 50%;
border: 5px solid #fff;
border-color: #fff transparent #fff transparent;
animation: dual-ring 1.2s linear infinite;
}
.hidden { display: none !important }
@keyframes dual-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@media only screen and (max-width: 767px) {
.ui.middle.aligned.grid.container {
width: 100% !important;
}
}
</style>
</head>
<body class="demo pushable dimmable">
<section class="loading progress hidden-no-js">
<div class="spinner dual-ring"></div>
</section>
<main class="pusher">
<section class="ui middle aligned centered stackable container two columns grid">
<div class="column">
<article class="ui fluid teal card">
<div class="content">
<a class="ui yellow right corner label">
<i class="hourglass icon"></i>
</a>
<div class="header">
Deferred styles:
<small>CSS loaded via JavaScript</small>
</div>
</div><!-- /.content -->
<div class="content">
<img class="ui avatar image" src="https://gravatar.com/avatar/5e190398d80e600e616e71c0cb90883c?s=64&d=mm&r=g"> Zhmayev Yaroslav
<span class="meta">
<small>aka Salaros</small>
</span>
</div><!-- /.content -->
<a class="ui image" href="https://developers.google.com/speed/pagespeed/insights/?url=https://salaros.github.io/deferred-styles/" target="_blank">
<img class="ui image" src="https://neilpatel.com/wp-content/uploads/2017/10/google-pagespeed-insights.jpg">
</a>
<div class=" content">
<a class="ui circular facebook icon button left floated" target="_blank"
href="https://www.facebook.com/dialog/feed?app_id=808139112708193&link=https%3A%2F%2Fsalaros.github.io%2Fdeferred-styles%2F&redirect_uri=https%3A%2F%2Fsalaros.github.io%2Fdeferred-styles%2F&picture=https%3A%2F%2Fneilpatel.com%2Fwp-content%2Fuploads%2F2017%2F10%2Fgoogle-pagespeed-insights.jpg&caption=Deferred%20styles%3A%20CSS%20loaded%20via%20JavaScript&description=a%20Google%20PageSpeed%20Insights%20Score%0D%0Ayour%20web%20resource%20deserves%0D%0AIf%20you%20are%20seeing%20this%20card%20rendered%20correctly%20it%20means%20that%20Semantic%20UI%20framework%27s%20CSS%20has%20been%20loaded%20in%20deferred%20way%20%28via%20JavaScript%29.%20&display=popup">
<i class="facebook icon"></i>
</a>
<button class="ui circular twitter icon button left floated">
<i class="twitter icon"></i>
</button>
<button class="ui circular linkedin icon button left floated">
<i class="linkedin icon"></i>
</button>
<button class="ui circular google plus icon button left floated">
<i class="google plus icon"></i>
</button>
<span class="right floated star">
<a class="ui basic label" href="https://github.com/salaros/deferred-styles" target="_blank">
<i class="github black large icon"></i>
1
<i class="star icon"></i>
0
<i class="fork icon"></i>
</a>
</span>
</div><!-- /.content -->
<div class="extra content">
<a class="ui green ribbon label"><i class="trophy icon"></i> 100 / 100</a>
<div class="header"><br>a Google PageSpeed Insights Score
</div>
<div class="meta">
your web resource deserves
</div>
<div class="description">
If you are seeing this card rendered correctly it means that Semantic UI framework's CSS has been loaded in deferred way
(via JavaScript).
</div>
</div><!-- /.extra.content -->
<a class="ui bottom attached green button" href="https://github.com/salaros/deferred-styles/archive/master.zip" target="_blank">
Download
<i class="download icon"></i>
</a>
</article><!-- /.card -->
</div><!-- /.column -->
</section><!-- /.grid -->
</main><!-- /.pusher -->
<script async src="script.js"></script>
</body>
</html>