Skip to content

Instantly share code, notes, and snippets.

@gbelote
Created October 13, 2010 23:32
Show Gist options
  • Save gbelote/625186 to your computer and use it in GitHub Desktop.
Save gbelote/625186 to your computer and use it in GitHub Desktop.
<!-- BEGIN Marginize -->
<script type="text/javascript">
// Start timing the load speed of mar.gy
_margyStartTime = new Number( new Date() );
(function() {
var margy = document.createElement('script'); margy.type = 'text/javascript'; margy.async = true;
// TODO: switch to subdomain and support SSL
margy.src = 'http://cdn.mar.gy/javascripts/widget/insert_widget.js';
//margy.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://cdn') + '.mar.gy/javascripts/widget/insert_widget.js';
var s = document.getElementsByTagName('script')[0];
setTimeout( function() { s.parentNode.insertBefore(margy, s); }, 10 );
})();
</script>
<!-- END Marginize -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment