I have this code to load the verisign trust seal:
<div style="margin-left:auto;margin-right:auto;margin-bottom:6px;width:100px;height:72px;overflow:hidden;">
<table width="100" border="0" cellpadding="2" cellspacing="0" title="Click to Verify - This site chose VeriSign Trust Seal to promote trust online with consumers." >
<tr>
<td width="100" align="center" valign="top"><script type="text/javascript" src="https://seal.verisign.com/getseal?host_name=factorydirectcraft.com&size=S&use_flash=NO&use_transparent=YES&lang=en" ></script></td>
</tr>
</table>
</div>
However, its adding around 700 ms to my page load time. Partially because it opens up an ssl connection to verisign to serve the seal image. I’ve attempted to add the defer=“defer” attribute, this causes it to not even render in firefox. I’ve also done a document.getElementById(“verisignload”).src=“https://seal.verisign.com/getseal?host_name=factorydirectcraft.com&size=S&use_flash=NO&use_transparent=YES&lang=en” to an onload event with the id applied to the script tag that had an empty src attribute, and it also does nothing. When i did this i did an in browser javascript and found that the src was indeed set correctly, leading me to believe the script itself just didn’t execute.
I do have another item i am deferring with this code:
function fbl(){
document.getElementById("facebookiframe").src="http://www.facebook.com/plugins/like.php?href='.urlencode(FULLURL).'&layout=standard&show_faces=true&width=350&action=like&font=arial&colorscheme=dark&height=80";
}
window.onload=function(){
fbl();
}
And that works fine, though it is a iframe element so that may be why. I’ve also tried one of the methods found online for appending an element to a child, and it did not work.
So anyone have any ideas on how to defer the verisign seal script? Worse case scenario i’ll probably keep the seal. Its presence adds more value to an ecommerce site than the speed.