Skip to content

Commit

Permalink
Preconnect to SSL PRovider so we can load even faster.
Browse files Browse the repository at this point in the history
Also, lets lazy load those .svg images that take differing amounts of time to load. They're on the bottom of the page anyways so lets load them only when we scroll down that far.
  • Loading branch information
kenman345 committed May 17, 2018
1 parent 60665f1 commit 9bcb7ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ repo: https://github.com/acceptbitcoincash/acceptbitcoincash
img: img/logo.png
google_analytics: UA-107218359-1
lang: en-US
SSLProvider: http://ocsp.digicert.com
twitter:
username: useBitcoinCash
sass:
Expand Down
10 changes: 5 additions & 5 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<p>Spot an issue, or want to add a site? <a class="submit-new" href="/add" target="_blank" data-tooltip="Fill out a quick form" data-position="top center" data-inverted="">Let us know</a> or <a href="https://github.com/acceptbitcoincash/acceptbitcoincash/blob/master/CONTRIBUTING.md" target="_blank" data-tooltip="Learn more about contributing" data-position="top center" data-inverted="">contribute</a> directly on <i class="github icon"></i><a href="{{ site.repo }}" target="_blank" data-tooltip="The source code for this site" data-position="top center" data-inverted="">GitHub</a>.</p>
<p>Made with <i class="red heart small icon"></i> by <a href="https://github.com/acceptbitcoincash" target="_blank" data-tooltip="Our organization on Github" data-position="top center" data-inverted=""><em>the</em> <b>Accept Bitcoin Cash</b> <em>initiative</em></a>. &nbsp; <a id="show-disclaimer" data-tooltip="Some important info to know" data-position="top center" data-inverted=""><i class="warning sign orange icon"></i>Caution!</a></p>
<p class="stats">
<a href="https://travis-ci.org/acceptbitcoincash/acceptbitcoincash" target="_blank"><img src="https://travis-ci.org/acceptbitcoincash/acceptbitcoincash.svg?branch=master" alt="Travis CI build status" /></a>
<a href="https://github.com/acceptbitcoincash/acceptbitcoincash/pulls" target="_blank"><img src="https://img.shields.io/github/issues-pr/acceptbitcoincash/acceptbitcoincash.svg" alt="Pending Pull Requests" /></a>
<a href="https://github.com/acceptbitcoincash/acceptbitcoincash/issues?q=is%3Aissue+is%3Aclosed" target="_blank"><img src="https://img.shields.io/github/issues-closed/acceptbitcoincash/acceptbitcoincash.svg" alt="Issues Closed" /></a>
<a href="https://github.com/acceptbitcoincash/acceptbitcoincash/blob/master/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-mit-blue.svg?style=flat" alt="MIT License" /></a>
<!-- a href="https://twitter.com/useBitcoinCash" target="_blank"><img src="https://img.shields.io/badge/Twitter-@useBitcoinCash-blue.svg" alt="@UseBitcoinCash on Twitter" /></a -->
<a href="https://travis-ci.org/acceptbitcoincash/acceptbitcoincash" target="_blank"><img src="{{ page.img_placeholder }}" data-src="https://travis-ci.org/acceptbitcoincash/acceptbitcoincash.svg?branch=master" alt="Travis CI build status" /></a>
<a href="https://github.com/acceptbitcoincash/acceptbitcoincash/pulls" target="_blank"><img src="{{ page.img_placeholder }}" data-src="https://img.shields.io/github/issues-pr/acceptbitcoincash/acceptbitcoincash.svg" alt="Pending Pull Requests" /></a>
<a href="https://github.com/acceptbitcoincash/acceptbitcoincash/issues?q=is%3Aissue+is%3Aclosed" target="_blank"><img src="{{ page.img_placeholder }}" data-src="https://img.shields.io/github/issues-closed/acceptbitcoincash/acceptbitcoincash.svg" alt="Issues Closed" /></a>
<a href="https://github.com/acceptbitcoincash/acceptbitcoincash/blob/master/LICENSE" target="_blank"><img src="{{ page.img_placeholder }}" data-src="https://img.shields.io/badge/license-mit-blue.svg?style=flat" alt="MIT License" /></a>
<!-- a href="https://twitter.com/useBitcoinCash" target="_blank"><img src="{{ page.img_placeholder }}" data-src="https://img.shields.io/badge/Twitter-@useBitcoinCash-blue.svg" alt="@UseBitcoinCash on Twitter" /></a -->
</p>
<p class="version"><em>Last modified</em> <b>{{ site.time }}</b></p>
</div>
6 changes: 5 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
<meta name="theme-color" content="#F7941D">

{% include google-analytics.html %}

{% if site.GH_ENV == 'gh_pages' %}
<link rel="preconnect" href="http://ocsp.digicert.com" crossorigin>
{% elsif site.SSLPRovider %}
<link rel="preconnect" href="{{ site.SSLProvider }}" crossorigin>
{% endif %}
<link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin>
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin>
Expand Down

0 comments on commit 9bcb7ac

Please sign in to comment.