Permalink
Browse files

added defer attribute so share widget script doesnt block page load

  • Loading branch information...
1 parent 6e407b8 commit decfa9001a2e88838ab4673686b8e141c9554e1f thatcher committed Nov 23, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −1 scripts/site.js
  2. +2 −1 templates/base.js
View
@@ -24,7 +24,7 @@ var site = {
page: 'examples',
title: 'Rhino For Webapps - Examples',
context: request.contextPath
- }
+ };
//Uses E4x if you not familiar check it out. Much cleaner than trying
//to quote a big string plus I've hardly touched the surface of whats possible
//Let me know if you do some creative stuff with it!
View
@@ -85,7 +85,8 @@ var templates = {
<li>
<span id="sharethisbutton">
<script type="text/javascript"
- src="http://w.sharethis.com/widget/?tabs=web%2Cpost%2Cemail&amp;charset=utf-8&amp;style=default&amp;publisher=b0f530fc-b206-4fb8-b8a8-478191e675c2&amp;headerbg=%23c20000&amp;linkfg=%23c20000">
+ src="http://w.sharethis.com/widget/?tabs=web%2Cpost%2Cemail&amp;charset=utf-8&amp;style=default&amp;publisher=b0f530fc-b206-4fb8-b8a8-478191e675c2&amp;headerbg=%23c20000&amp;linkfg=%23c20000"
+ defer='defer'>
<!-- -->
</script>
</span>

0 comments on commit decfa90

Please sign in to comment.