Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

just add async to make twitter's widget not block the page

  • Loading branch information...
commit f9bd99352c9f26146c178b61c3cce25cab003aa6 1 parent cd28943
胡伯 authored
Showing with 1 addition and 10 deletions.
  1. +1 −10 index.html
View
11 index.html
@@ -566,16 +566,7 @@ <h1 class="overlay">
<p>
<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://microjs.com/" data-count="horizontal" data-via="thomasfuchs">Tweet</a>
- <script>
- (function() {
- var t = document.createElement('script');
- t.type = 'text/javascript';
- t.async = true;
- t.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'platform.twitter.com/widgets.js';
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(t, s);
- })();
- </script>
+ <script async src="//platform.twitter.com/widgets.js" ></script>
</p>
<ul id="results"></ul>
Please sign in to comment.
Something went wrong with that request. Please try again.