Skip to content

Commit 1894308

Browse files
committed
update perf
1 parent e1b1ce6 commit 1894308

22 files changed

+107
-37
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ bower_components
44
.DS_Store
55
**/.DS_Store
66
yarn.lock
7+
.vscode/

css/grayscale.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,8 @@
630630
}
631631

632632
.authors-section {
633-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #394a5c), color-stop(75%, rgba(12, 31, 55, 0.9)), to(#0c1f37)), url("https://get.pxhere.com/photo/sky-bicycle-cycling-vehicle-cycle-sport-mountain-bike-mountainous-landforms-mountain-range-mountain-mountain-biking-recreation-alps-mode-of-transport-road-downhill-mountain-biking-mountain-pass-sports-equipment-tree-spoke-road-bicycle-bicycle-pedal-freeride-road-cycling-hill-hill-station-cloud-bicycle-wheel-ridge-thoroughfare-adventure-tourism-trail-mountain-bike-racing-bicycle-frame-holiday-hybrid-bicycle-wheel-valley-cross-country-cycling-1576559.png");
634-
background: linear-gradient(to bottom, #394a5c 0, rgba(12, 31, 55, 0.9) 75%, #0c1f37 100%), url("https://get.pxhere.com/photo/sky-bicycle-cycling-vehicle-cycle-sport-mountain-bike-mountainous-landforms-mountain-range-mountain-mountain-biking-recreation-alps-mode-of-transport-road-downhill-mountain-biking-mountain-pass-sports-equipment-tree-spoke-road-bicycle-bicycle-pedal-freeride-road-cycling-hill-hill-station-cloud-bicycle-wheel-ridge-thoroughfare-adventure-tourism-trail-mountain-bike-racing-bicycle-frame-holiday-hybrid-bicycle-wheel-valley-cross-country-cycling-1576559.png");
633+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #394a5c), color-stop(75%, rgba(12, 31, 55, 0.9)), to(#0c1f37)), url("https://raw.githubusercontent.com/mlco2/impact/master/img/bicycle-pic.png");
634+
background: linear-gradient(to bottom, #394a5c 0, rgba(12, 31, 55, 0.9) 75%, #0c1f37 100%), url("https://raw.githubusercontent.com/mlco2/impact/master/img/bicycle-pic.png");
635635
background-position: center;
636636
background-repeat: no-repeat;
637637
background-attachment: scroll;

css/grayscale.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

favicon.ico

15 KB
Binary file not shown.

html/_about.html

+7-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ <h4 class="text-white mb-4" style="width:100%">Read our paper</h4>
3131
</div>
3232
<div class="col-md-6 col-sm-12 about-content-img">
3333
<a href="https://arxiv.org/abs/1910.09700" target="_blank" rel="noopener noreferrer">
34-
<img src=".../img/measuring-im.png" alt="paper outline">
34+
<img class="lozad"
35+
src="https://raw.githubusercontent.com/mlco2/impact/master/img/measuring-im.png"
36+
alt="paper outline">
3537
</a>
3638
</div>
3739
</div>
@@ -48,7 +50,9 @@ <h4 class="text-white mb-4" style="width:100%">Look at the Data</h4>
4850
<div class="col-md-6 col-sm-12 about-content-img">
4951
<a href="https://github.com/mlco2/impact/tree/master/data" title="Go see the data on Github"
5052
target="_blank" rel="noopener noreferrer">
51-
<img src=".../img/data.png" alt="data presentation">
53+
<img class="lozad"
54+
src="https://raw.githubusercontent.com/mlco2/impact/master/img/data.png"
55+
alt="data presentation">
5256
</a>
5357
</div>
5458
<div class="col-12" style="margin-top: 3rem">
@@ -76,4 +80,4 @@ <h4 class="text-white mb-4" style="width:100%">Look at the Data</h4>
7680
</div>
7781
</div>
7882
</div>
79-
</section>
83+
</section>

html/_authors.html

+8-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ <h4 class="text-white mb-4" style="width:100%">Alexandre Lacoste</h4>
1919
learning where he developed bridges between PAC-Bayes and Bayes theories.</p>
2020
</div>
2121
<div class="col-md-3 col-sm-12 authors-content-img">
22-
<img src=".../img/alex.png" alt="alexandre lacoste">
22+
<img class="lozad" src="https://raw.githubusercontent.com/mlco2/impact/master/img/alex.png"
23+
alt="alexandre lacoste">
2324
</div>
2425
</div>
2526
</div>
@@ -38,7 +39,8 @@ <h4 class="text-white mb-4" style="width:100%">Alexandra (Sasha) Luccioni</h4>
3839
</div>
3940
<div class="col-md-3 col-sm-12 authors-content-img">
4041
<a href="https://sashaluccioni.com/" target="_blank" rel="noopener noreferrer">
41-
<img src="https://sashaluccioni.files.wordpress.com/2019/07/img_20190307_091449_436.jpg"
42+
<img class="lozad"
43+
src="https://sashaluccioni.files.wordpress.com/2019/07/img_20190307_091449_436.jpg"
4244
alt="sasha luccioni">
4345
</a>
4446
</div>
@@ -55,12 +57,14 @@ <h4 class="text-white mb-4" style="width:100%">Victor Schmidt</h4>
5557
help the public better understand them. Prior to his PhD, Victor worked as a <a
5658
href="https://entrepreneur-interet-general.etalab.gouv.fr/defis/2018/hopkins.html"
5759
rel="noopener noreferrer">Public
58-
Interest Entrepreneur</a> in France. He obtained his engineering dregree from Ecole
60+
Interest Entrepreneur</a> in France. He obtained his engineering degree from Ecole
5961
polytechnique and an MSc. in Machine Learning from UCL.</p>
6062
</div>
6163
<div class="col-md-3 col-sm-12 authors-content-img">
6264
<a href="https://vict0rs.ch" target="_blank" rel="noopener noreferrer">
63-
<img src=".../img/victor.jpeg" alt="victor schmidt">
65+
<img class="lozad"
66+
src="https://raw.githubusercontent.com/mlco2/impact/master/img/victor.jpeg"
67+
alt="victor schmidt">
6468
</a>
6569
</div>
6670
</div>

html/_head.html

+12
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@
2222

2323
<!-- Custom styles for this template -->
2424
<link href="css/grayscale.min.css" rel="stylesheet">
25+
<link rel="apple-touch-icon" sizes="180x180"
26+
href="https://raw.githubusercontent.com/mlco2/impact/master/img/apple-touch-icon.png">
27+
<link rel="icon" type="image/png" sizes="48x48"
28+
href="https://raw.githubusercontent.com/mlco2/impact/master/img/favicon.ico">
29+
<link rel="icon" type="image/png" sizes="32x32"
30+
href="https://raw.githubusercontent.com/mlco2/impact/master/img/favicon-32x32.png">
31+
<link rel="icon" type="image/png" sizes="16x16"
32+
href="https://raw.githubusercontent.com/mlco2/impact/master/img/favicon-16x16.png">
33+
<link rel="manifest" href="/site.webmanifest">
34+
35+
<script src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js"></script>
36+
2537

2638
</head>
2739

html/_learn.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ <h4 class="text-white" class="summary-header">Featured Maps</h4>
214214
Here are a few maps from Our World In Data which illustrate the complexity of carbon
215215
emissions mitigations. For a complete analysis, visit <a
216216
href="https://ourworldindata.org/co2-and-other-greenhouse-gas-emissions"
217-
target="_blank"
218-
rel="noopener noreferrer">their webstie</a>
217+
target="_blank" rel="noopener noreferrer">their webstie</a>
219218
</p>
220219

221220
<br>
@@ -231,7 +230,7 @@ <h4 class="text-white" class="summary-header">Featured Maps</h4>
231230

232231
<br>
233232
<br>
234-
<img style="width: 100%;"
233+
<img class="lozad" style="width: 100%;"
235234
src="https://ourworldindata.org/uploads/2018/04/Greenhouse-gas-emission-scenarios-01.png"
236235
alt="greenhouse gas scenarios">
237236
</div>

img/android-chrome-192x192.png

7.93 KB
Loading

img/android-chrome-512x512.png

22.4 KB
Loading

img/apple-touch-icon.png

7.22 KB
Loading

img/bicycle-pic.png

1.82 MB
Loading

img/favicon-16x16.png

373 Bytes
Loading

img/favicon-32x32.png

909 Bytes
Loading

img/favicon.ico

15 KB
Binary file not shown.

index.html

+28-10
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@
2222

2323
<!-- Custom styles for this template -->
2424
<link href="css/grayscale.min.css" rel="stylesheet">
25+
<link rel="apple-touch-icon" sizes="180x180"
26+
href="https://raw.githubusercontent.com/mlco2/impact/master/img/apple-touch-icon.png">
27+
<link rel="icon" type="image/png" sizes="48x48"
28+
href="https://raw.githubusercontent.com/mlco2/impact/master/img/favicon.ico">
29+
<link rel="icon" type="image/png" sizes="32x32"
30+
href="https://raw.githubusercontent.com/mlco2/impact/master/img/favicon-32x32.png">
31+
<link rel="icon" type="image/png" sizes="16x16"
32+
href="https://raw.githubusercontent.com/mlco2/impact/master/img/favicon-16x16.png">
33+
<link rel="manifest" href="/site.webmanifest">
34+
35+
<script src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js"></script>
36+
2537

2638
</head>
2739

@@ -410,8 +422,7 @@ <h4 class="text-white" class="summary-header">Featured Maps</h4>
410422
Here are a few maps from Our World In Data which illustrate the complexity of carbon
411423
emissions mitigations. For a complete analysis, visit <a
412424
href="https://ourworldindata.org/co2-and-other-greenhouse-gas-emissions"
413-
target="_blank"
414-
rel="noopener noreferrer">their webstie</a>
425+
target="_blank" rel="noopener noreferrer">their webstie</a>
415426
</p>
416427

417428
<br>
@@ -427,7 +438,7 @@ <h4 class="text-white" class="summary-header">Featured Maps</h4>
427438

428439
<br>
429440
<br>
430-
<img style="width: 100%;"
441+
<img class="lozad" style="width: 100%;"
431442
src="https://ourworldindata.org/uploads/2018/04/Greenhouse-gas-emission-scenarios-01.png"
432443
alt="greenhouse gas scenarios">
433444
</div>
@@ -606,7 +617,9 @@ <h4 class="text-white mb-4" style="width:100%">Read our paper</h4>
606617
</div>
607618
<div class="col-md-6 col-sm-12 about-content-img">
608619
<a href="https://arxiv.org/abs/1910.09700" target="_blank" rel="noopener noreferrer">
609-
<img src=".../img/measuring-im.png" alt="paper outline">
620+
<img class="lozad"
621+
src="https://raw.githubusercontent.com/mlco2/impact/master/img/measuring-im.png"
622+
alt="paper outline">
610623
</a>
611624
</div>
612625
</div>
@@ -623,7 +636,9 @@ <h4 class="text-white mb-4" style="width:100%">Look at the Data</h4>
623636
<div class="col-md-6 col-sm-12 about-content-img">
624637
<a href="https://github.com/mlco2/impact/tree/master/data" title="Go see the data on Github"
625638
target="_blank" rel="noopener noreferrer">
626-
<img src=".../img/data.png" alt="data presentation">
639+
<img class="lozad"
640+
src="https://raw.githubusercontent.com/mlco2/impact/master/img/data.png"
641+
alt="data presentation">
627642
</a>
628643
</div>
629644
<div class="col-12" style="margin-top: 3rem">
@@ -652,7 +667,6 @@ <h4 class="text-white mb-4" style="width:100%">Look at the Data</h4>
652667
</div>
653668
</div>
654669
</section>
655-
656670
<!-- Authors Section -->
657671
<section class="authors-section bg-light" id="authors">
658672
<div class="container">
@@ -674,7 +688,8 @@ <h4 class="text-white mb-4" style="width:100%">Alexandre Lacoste</h4>
674688
learning where he developed bridges between PAC-Bayes and Bayes theories.</p>
675689
</div>
676690
<div class="col-md-3 col-sm-12 authors-content-img">
677-
<img src=".../img/alex.png" alt="alexandre lacoste">
691+
<img class="lozad" src="https://raw.githubusercontent.com/mlco2/impact/master/img/alex.png"
692+
alt="alexandre lacoste">
678693
</div>
679694
</div>
680695
</div>
@@ -693,7 +708,8 @@ <h4 class="text-white mb-4" style="width:100%">Alexandra (Sasha) Luccioni</h4>
693708
</div>
694709
<div class="col-md-3 col-sm-12 authors-content-img">
695710
<a href="https://sashaluccioni.com/" target="_blank" rel="noopener noreferrer">
696-
<img src="https://sashaluccioni.files.wordpress.com/2019/07/img_20190307_091449_436.jpg"
711+
<img class="lozad"
712+
src="https://sashaluccioni.files.wordpress.com/2019/07/img_20190307_091449_436.jpg"
697713
alt="sasha luccioni">
698714
</a>
699715
</div>
@@ -710,12 +726,14 @@ <h4 class="text-white mb-4" style="width:100%">Victor Schmidt</h4>
710726
help the public better understand them. Prior to his PhD, Victor worked as a <a
711727
href="https://entrepreneur-interet-general.etalab.gouv.fr/defis/2018/hopkins.html"
712728
rel="noopener noreferrer">Public
713-
Interest Entrepreneur</a> in France. He obtained his engineering dregree from Ecole
729+
Interest Entrepreneur</a> in France. He obtained his engineering degree from Ecole
714730
polytechnique and an MSc. in Machine Learning from UCL.</p>
715731
</div>
716732
<div class="col-md-3 col-sm-12 authors-content-img">
717733
<a href="https://vict0rs.ch" target="_blank" rel="noopener noreferrer">
718-
<img src=".../img/victor.jpeg" alt="victor schmidt">
734+
<img class="lozad"
735+
src="https://raw.githubusercontent.com/mlco2/impact/master/img/victor.jpeg"
736+
alt="victor schmidt">
719737
</a>
720738
</div>
721739
</div>

js/data.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
var dev_base_data_url = '/data/';
3-
var prod_base_data_url = '/impact/data/';
2+
var dev_base_data_url = 'https://raw.githubusercontent.com/mlco2/impact/master/data/';
3+
var prod_base_data_url = 'https://raw.githubusercontent.com/mlco2/impact/master/data/';
44
var serveFrom = "dev"
55

66
const parseProvidersData = data => {
@@ -119,4 +119,4 @@ async function getData() {
119119
providers: parseProvidersData($.csv.toObjects(proResults)),
120120
gpus: parseGPUData($.csv.toObjects(gpuResults)),
121121
}
122-
}
122+
}

0 commit comments

Comments
 (0)