Created
August 15, 2012 04:26
-
-
Save anbotero/3355879 to your computer and use it in GitHub Desktop.
Discus async loading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
var links = $('a'); | |
var query = '?'; | |
for(var i = 0; i = 0) { | |
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&'; | |
} | |
} | |
$('head').append('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/{text:Disqus Shortname}/get_num_replies.js' + query + '">' + '</script>'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment