Skip to content

Commit

Permalink
Fix lighthout errors and also inconsistencies in contributors and cdn…
Browse files Browse the repository at this point in the history
… pages (#644)
  • Loading branch information
tunetheweb authored and rviscomi committed Jan 18, 2020
1 parent db57745 commit 509e4bd
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 35 deletions.
3 changes: 1 addition & 2 deletions src/content/en/2019/cdn.md
Expand Up @@ -1560,7 +1560,6 @@ The reduction in latency that CDNs deliver along with their ability to store con

Steve Souders' recommendation to use a CDN remains as valid today as it was 12 years ago, yet only 20% of sites serve their HTML content via a CDN, and only 40% are using a CDN for resources, so there's plenty of opportunity for their usage to grow further.

There are some aspects of CDN adoption that aren't included in this analysis, sometimes
this was due to the limitations of the dataset and how it's collected, in other cases new research questions emerged during the analysis.
There are some aspects of CDN adoption that aren't included in this analysis, sometimes this was due to the limitations of the dataset and how it's collected, in other cases new research questions emerged during the analysis.

As the web continues to evolve, CDN vendors innovate, and sites use new practices CDN adoption remains an area rich for further research in future editions of the Web Almanac.
2 changes: 1 addition & 1 deletion src/csp.py
Expand Up @@ -26,7 +26,7 @@
'www.googletagmanager.com',
'stats.g.doubleclick.net',
'*.githubusercontent.com',
'docs.google.com',
'*.google.com',
'ssl.gstatic.com',
'data:'
],
Expand Down
10 changes: 5 additions & 5 deletions src/templates/ar/2019/base.html
Expand Up @@ -27,7 +27,7 @@
{% endif %}
{{ language_switcher() }}
</div>
<button type="button" class="menu-btn" arial-label="Menu">
<button type="button" class="menu-btn" aria-label="Menu">
<img class="menu-icon" src="/static/images/menu.png" data-src-close="/static/images/close.png" alt="" />
</button>
<nav class="menu">
Expand All @@ -40,10 +40,10 @@
</a>
<div class="social-media">
<a href="https://twitter.com/HTTPArchive" class="twitter">
<img src="/static/images/twitter.png" height="80" width="65" alt="Twitter" loading="lazy" />
<img src="/static/images/twitter.png" height="65" width="80" alt="Twitter" loading="lazy" />
</a>
<a href="https://github.com/HTTPArchive/almanac.httparchive.org" class="github">
<img src="/static/images/github.png" height="80" width="78" alt="GitHub" loading="lazy" />
<img src="/static/images/github.png" height="75" width="80" alt="GitHub" loading="lazy" />
</a>
</div>
{{ language_switcher() }}
Expand Down Expand Up @@ -94,10 +94,10 @@ <h2>
<p class="copyright"><span>© 2019 Web Almanac. Licensed under <a href="https://github.com/HTTPArchive/almanac.httparchive.org/blob/master/LICENSE">Apache 2.0</a>.</span></p>
<div class="social-media">
<a href="https://twitter.com/HTTPArchive" class="twitter">
<img src="/static/images/twitter.png" alt="Twitter" height="80" width="65" loading="lazy" />
<img src="/static/images/twitter.png" alt="Twitter" height="65" width="80" loading="lazy" />
</a>
<a href="https://github.com/HTTPArchive/almanac.httparchive.org" class="github">
<img src="/static/images/github.png" alt="GitHub" height="80" width="78" loading="lazy" />
<img src="/static/images/github.png" alt="GitHub" height="78" width="80" loading="lazy" />
</a>
</div>
<hr>
Expand Down
10 changes: 5 additions & 5 deletions src/templates/en/2019/base.html
Expand Up @@ -26,7 +26,7 @@
</a>
</div>
{% endif %}
<button type="button" class="menu-btn" arial-label="Menu">
<button type="button" class="menu-btn" aria-label="Menu">
<img class="menu-icon" src="/static/images/menu.png" data-src-close="/static/images/close.png" alt="" />
</button>
<nav class="menu">
Expand All @@ -39,10 +39,10 @@
</a>
<div class="social-media">
<a href="https://twitter.com/HTTPArchive" class="twitter">
<img src="/static/images/twitter.png" height="80" width="65" alt="Twitter" loading="lazy" />
<img src="/static/images/twitter.png" height="65" width="80" alt="Twitter" loading="lazy" />
</a>
<a href="https://github.com/HTTPArchive/almanac.httparchive.org" class="github">
<img src="/static/images/github.png" height="80" width="78" alt="GitHub" loading="lazy" />
<img src="/static/images/github.png" height="78" width="80" alt="GitHub" loading="lazy" />
</a>
</div>
{{ language_switcher() }}
Expand Down Expand Up @@ -96,10 +96,10 @@ <h2>
<p class="copyright"><span>© 2019 Web Almanac. Licensed under <a href="https://github.com/HTTPArchive/almanac.httparchive.org/blob/master/LICENSE">Apache 2.0</a>.</span></p>
<div class="social-media">
<a href="https://twitter.com/HTTPArchive" class="twitter">
<img src="/static/images/twitter.png" alt="Twitter" height="80" width="65" loading="lazy" />
<img src="/static/images/twitter.png" alt="Twitter" height="65" width="80" loading="lazy" />
</a>
<a href="https://github.com/HTTPArchive/almanac.httparchive.org" class="github">
<img src="/static/images/github.png" alt="GitHub" height="80" width="78" loading="lazy" />
<img src="/static/images/github.png" alt="GitHub" height="78" width="80" loading="lazy" />
</a>
</div>
<hr>
Expand Down
4 changes: 2 additions & 2 deletions src/templates/en/2019/base_chapter.html
Expand Up @@ -89,10 +89,10 @@
{% if authordata.twitter or authordata.github %}
<span class="social">
{% if authordata.twitter %}
<a class="twitter" href="https://twitter.com/{{ authordata.twitter }}"><img src="/static/images/twitter.png" alt="@{{ authordata.twitter }} on Twitter" height="80" width="65" loading="lazy" /></a>
<a class="twitter" href="https://twitter.com/{{ authordata.twitter }}"><img src="/static/images/twitter.png" alt="@{{ authordata.twitter }} on Twitter" height="65" width="80" loading="lazy" /></a>
{% endif %}
{% if authordata.github %}
<a class="github" href="https://github.com/{{ authordata.github }}"><img src="/static/images/github.png" alt="{{ authordata.github }} on GitHub" height="80" width="78" loading="lazy" /></a>
<a class="github" href="https://github.com/{{ authordata.github }}"><img src="/static/images/github.png" alt="{{ authordata.github }} on GitHub" height="78" width="80" loading="lazy" /></a>
{% endif %}
{% if authordata.website %}
<a class="website" href="{{ authordata.website }}"><img src="/static/images/blog.png" alt="{{ authordata.name }} website" height="72" width="72" loading="lazy" /></a>
Expand Down
8 changes: 4 additions & 4 deletions src/templates/en/2019/contributors.html
Expand Up @@ -364,11 +364,11 @@ <h1 class="title title-lg">
<div class="contributor-name">{{ contributor.name }}</div>

<div class="contributor-social">
{% if contributor.github %}
<a href="https://github.com/{{ contributor.github }}" target="_blank" title="{{ contributor.github }} on GitHub"><img src="/static/images/github.png" alt="GitHub" height="80" width="78" loading="lazy" /></a>
{% endif %}
{% if contributor.twitter %}
<a href="https://twitter.com/{{ contributor.twitter }}" target="_blank" title="{{ contributor.twitter }} on Twitter"><img src="/static/images/twitter.png" alt="Twitter" height="80" width="65" loading="lazy" /></a>
<a href="https://twitter.com/{{ contributor.twitter }}" target="_blank" title="{{ contributor.twitter }} on Twitter"><img src="/static/images/twitter.png" alt="Twitter" height="65" width="80" loading="lazy" /></a>
{% endif %}
{% if contributor.github %}
<a href="https://github.com/{{ contributor.github }}" target="_blank" title="{{ contributor.github }} on GitHub"><img src="/static/images/github.png" alt="GitHub" height="78" width="80" loading="lazy" /></a>
{% endif %}
{% if contributor.website %}
<a href="{{ contributor.website }}" target="_blank" title="{{ contributor.name }} website"><img src="/static/images/blog.png" alt="website" height="72" width="72" loading="lazy" /></a>
Expand Down
10 changes: 5 additions & 5 deletions src/templates/es/2019/base.html
Expand Up @@ -24,7 +24,7 @@
{% endif %}
{{ language_switcher() }}
</div>
<button type="button" class="menu-btn" arial-label="Menú">
<button type="button" class="menu-btn" aria-label="Menú">
<img class="menu-icon" src="/static/images/menu.png" data-src-close="/static/images/close.png" alt="" />
</button>
<nav class="menu">
Expand All @@ -37,10 +37,10 @@
</a>
<div class="social-media">
<a href="https://twitter.com/HTTPArchive" class="twitter">
<img src="/static/images/twitter.png" alt="Twitter" height="80" width="65" loading="lazy" />
<img src="/static/images/twitter.png" alt="Twitter" height="65" width="80" loading="lazy" />
</a>
<a href="https://github.com/HTTPArchive/almanac.httparchive.org" class="github">
<img src="/static/images/github.png" alt="GitHub" height="80" width="78" loading="lazy" />
<img src="/static/images/github.png" alt="GitHub" height="78" width="80" loading="lazy" />
</a>
</div>
{{ language_switcher() }}
Expand Down Expand Up @@ -91,10 +91,10 @@ <h2>
<p class="copyright">Copyright © 2019 Web Almanac. Todos los derechos reservados.</p>
<div class="social-media">
<a href="https://twitter.com/HTTPArchive" class="twitter">
<img src="/static/images/twitter.png" alt="Twitter" height="80" width="65" loading="lazy" />
<img src="/static/images/twitter.png" alt="Twitter" height="65" width="80" loading="lazy" />
</a>
<a href="https://github.com/HTTPArchive/almanac.httparchive.org" class="github">
<img src="/static/images/github.png" alt="GitHub" height="80" width="78" loading="lazy" />
<img src="/static/images/github.png" alt="GitHub" height="78" width="80" loading="lazy" />
</a>
</div>
<hr>
Expand Down
10 changes: 5 additions & 5 deletions src/templates/fr/2019/base.html
Expand Up @@ -26,7 +26,7 @@
</a>
</div>
{% endif %}
<button type="button" class="menu-btn" arial-label="Menu">
<button type="button" class="menu-btn" aria-label="Menu">
<img class="menu-icon" src="/static/images/menu.png" data-src-close="/static/images/close.png" alt="" />
</button>
<nav class="menu">
Expand All @@ -39,10 +39,10 @@
</a>
<div class="social-media">
<a href="https://twitter.com/HTTPArchive" class="twitter">
<img src="/static/images/twitter.png" height="80" width="65" alt="Twitter" loading="lazy" />
<img src="/static/images/twitter.png" height="65" width="80" alt="Twitter" loading="lazy" />
</a>
<a href="https://github.com/HTTPArchive/almanac.httparchive.org" class="github">
<img src="/static/images/github.png" height="80" width="78" alt="GitHub" loading="lazy" />
<img src="/static/images/github.png" height="78" width="80" alt="GitHub" loading="lazy" />
</a>
</div>
{{ language_switcher() }}
Expand Down Expand Up @@ -96,10 +96,10 @@ <h2>
<p class="copyright"><span>© 2019 Web Almanac. Sous licence <a href="https://github.com/HTTPArchive/almanac.httparchive.org/blob/master/LICENSE">Apache 2.0</a>.</span></p>
<div class="social-media">
<a href="https://twitter.com/HTTPArchive" class="twitter">
<img src="/static/images/twitter.png" alt="Twitter" height="80" width="65" loading="lazy" />
<img src="/static/images/twitter.png" alt="Twitter" height="65" width="80" loading="lazy" />
</a>
<a href="https://github.com/HTTPArchive/almanac.httparchive.org" class="github">
<img src="/static/images/github.png" alt="GitHub" height="80" width="78" loading="lazy" />
<img src="/static/images/github.png" alt="GitHub" height="78" width="80" loading="lazy" />
</a>
</div>
<hr>
Expand Down
4 changes: 2 additions & 2 deletions src/templates/fr/2019/base_chapter.html
Expand Up @@ -89,10 +89,10 @@
{% if authordata.twitter or authordata.github %}
<span class="social">
{% if authordata.twitter %}
<a class="twitter" href="https://twitter.com/{{ authordata.twitter }}"><img src="/static/images/twitter.png" alt="@{{ authordata.twitter }} sur Twitter" height="80" width="65" loading="lazy" /></a>
<a class="twitter" href="https://twitter.com/{{ authordata.twitter }}"><img src="/static/images/twitter.png" alt="@{{ authordata.twitter }} sur Twitter" height="65" width="80" loading="lazy" /></a>
{% endif %}
{% if authordata.github %}
<a class="github" href="https://github.com/{{ authordata.github }}"><img src="/static/images/github.png" alt="{{ authordata.github }} sur GitHub" height="80" width="78" loading="lazy" /></a>
<a class="github" href="https://github.com/{{ authordata.github }}"><img src="/static/images/github.png" alt="{{ authordata.github }} sur GitHub" height="78" width="80" loading="lazy" /></a>
{% endif %}
{% if authordata.website %}
<a class="website" href="{{ authordata.website }}"><img src="/static/images/blog.png" alt="site web de {{ authordata.name }}" height="72" width="72" loading="lazy" /></a>
Expand Down
8 changes: 4 additions & 4 deletions src/templates/fr/2019/contributors.html
Expand Up @@ -321,11 +321,11 @@ <h1 class="title title-lg">
<div class="contributor-name">{{ contributor.name }}</div>

<div class="contributor-social">
{% if contributor.github %}
<a href="https://github.com/{{ contributor.github }}" target="_blank" title="{{ contributor.github }} sur GitHub"><img src="/static/images/github.png" alt="GitHub" height="80" width="78" loading="lazy" /></a>
{% endif %}
{% if contributor.twitter %}
<a href="https://twitter.com/{{ contributor.twitter }}" target="_blank" title="{{ contributor.twitter }} sur Twitter"><img src="/static/images/twitter.png" alt="Twitter" height="80" width="65" loading="lazy" /></a>
<a href="https://twitter.com/{{ contributor.twitter }}" target="_blank" title="{{ contributor.twitter }} sur Twitter"><img src="/static/images/twitter.png" alt="Twitter" height="65" width="80" loading="lazy" /></a>
{% endif %}
{% if contributor.github %}
<a href="https://github.com/{{ contributor.github }}" target="_blank" title="{{ contributor.github }} sur GitHub"><img src="/static/images/github.png" alt="GitHub" height="78" width="80" loading="lazy" /></a>
{% endif %}
{% if contributor.website %}
<a href="{{ contributor.website }}" target="_blank" title="site web de {{ contributor.name }}"><img src="/static/images/blog.png" alt="Site Web" height="72" width="72" loading="lazy" /></a>
Expand Down

0 comments on commit 509e4bd

Please sign in to comment.