IFrame and others Reloading after Clone and Append
<p>I have written below JavaScript using JQuery. I have tested it in Firebug and it is working. </p>

<p>What I am doing here?
I am copying social share bar and putting (after clone) in fixed position near to Post body. I think if someone share something then it will work as everything is same. </p>

<p>My question is about optimization. 
1) I see every iframe esp. Facebook is reloading again after clone and append. I wish to avoid that. </p>

<pre><code>function copySocial() {

jQuery('&lt;div/&gt;', {
    id: 'dsocial',
    left: '25px',
    position: 'fixed',
    top: '400px',
    width: '44px',
    display: 'relative'
}).appendTo('#container');

var social = jQuery('div.share.social').clone(true).appendTo('#dsocial').css({"left":"25px", "position":"fixed", "top":"400px", "width":"45px"});

}

if ((jQuery(window).width() &gt; 1025) &amp;&amp; (jQuery(document).width() &gt; 1025)) {
    window.setTimeout(copySocial, 20000);
}
</code></pre>

<p>2nd problem is - 
 I have to apply CSS two times. First at new DIV creation time and 2nd at the time of append. Why it is required. I tried to remove CSS (position etc) at the time of DIV creation but it did not work. </p>
