]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
switch to async widget.js script
authorJacob Thornton <jacobthornton@gmail.com>
Wed, 4 Jan 2012 18:02:51 +0000 (10:02 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Wed, 4 Jan 2012 18:02:51 +0000 (10:02 -0800)
docs/index.html

index 6e3475ec7cc74422e589e984c3bb22863e6405bf..732ad95965d4f130d32c9708d7cdea53ae321be8 100644 (file)
       <p>Read more on <a href="https://dev.twitter.com/blog/bootstrap-twitter">dev.twitter.com &rsaquo;</a></p>
       <p>
         <a href="http://twitter.com/twbootstrap" class="twitter-follow-button">Follow @twbootstrap</a>
-        <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
+        <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
       </p>
     </div>
     <div class="span-one-third">