setTimeout works, but itβs not really possible to postpone, because if the page has finished loading after the set time (in this case 3 seconds), then a similar button will be loaded before the page finishes loading.
I put the button-like javscript code in my own function and put it in
<script> function FbButtonLoad(){ (function(d,s,id){ </script>
then I set it in the body tag to run when the page loads:
<body onload="FbButtonLoad();">
On the page where I left the containers, a button appears:
<div id="fb-root"></div> <div class="fb-like" data-send="true" data-width="350" data-show-faces="true"></div>
yoshi source share