Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I have a little part of my page devoted to liking the page itself:

enter image description here

Now, all of the social buttons work, except that the StumbleUpon button generates an error.

This is the code I used for the button:

<!-- Place this tag where you want the su badge to render -->
<su:badge layout="2" location="http://www.yannbane.com"></su:badge>

<!-- Place this snippet wherever appropriate -->
<script type="text/javascript">
  (function() {
    var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
    li.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//platform.stumbleupon.com/1/widgets.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s);

The error's I'm referring to:

Unable to post message to http://www.stumbleupon.com. Recipient has origin http://www.yannbane.com.

I have two questions:

  1. Will this affect my page's performance on SU?
  2. If so, how can I fix it?
share|improve this question
Where did you grab the code from? Have you seen another site use it? –  Eight Days of Malaise Sep 15 '12 at 22:07
Got them from the official SU page here: stumbleupon.com/dt/badges/create. –  jco Sep 16 '12 at 9:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.