How to delay loading Norton Secure Site Seal?

I am showing a Norton Secure Site site print on a website, and I would like to improve page speed by delaying the loading of a print script. All the attempts that I performed failed, and I found only this page where it is mentioned ( link ). Has anyone ever found a good workaround for this?
The delayed code that I use to run other scripts is as follows:

<script type="text/javascript">(function(d, s) { var js, fjs = d.getElementsByTagName(s)[0], load = function(url, id) { if (d.getElementById(id)) { return; } js = d.createElement(s); js.src = url; js.id = id; fjs.parentNode.insertBefore(js, fjs); }; load('/js/scriptone.js', 'one'); load('/js/scripttwo.js', 'two'); }(document, 'script')); </script> 

If you want to see the site print initialization script: (I use flash animation)

 <script type="text/javascript" src="https://trustseal.verisign.com/getseal?host_name=www.undisclosed.com&amp;size=S&amp;use_flash=YES&amp;use_transparent=YES&amp;lang=en"></script> 

obviously this will display correctly on my website and I decided to change the domain name for privacy. I really want to avoid using iframes, and if you find the appropriate value, I also download jQuery

+6
source share
3 answers

It also kills my business. Seriously ... from +2 to +20 seconds per page load. AFYS?

We switch to locating the image locally, but still reference the Norton source URL. Do not do this. Mark this answer. It is not right. It's illegal. But it is practical.

 https://trustsealinfo.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.EXAMPLE.COM&lang=en 

UPDATE:

The real solution:

  • Call 877-438-8776, x2, x1
  • Let them know that printing is slow and you have> 10,000 hits per day on your site.
  • They provide you with a set of media to install on your own site.
+7
source

If you look at the code, they use document.write .

The way I process it is as follows

 document.write = function(s) { document.getElementById('seal-wrapper').innerHTML += s; } 

Of course, this is a very simple hack that only works when there is one script that uses document.write and you know where you want it to be written.

+3
source

I tried loading the print in an iframe, and then putting it where it intended. It works for me. Using jQuery. Here he is:

Create a .js file (I named it hackseal.js)

 $(function () { if (typeof(vs_hack) !== 'undefined') { return; } vs_hack = true; var iframe = document.createElement('iframe'); var html = '<script src="url_to_verysign" type="text/javascript"></script>'; iframe.style.display = 'none'; document.body.appendChild(iframe); iframe.contentWindow.document.open(); iframe.contentWindow.document.write(html); iframe.contentWindow.document.close(); iframe.onload = function () { var copy = ['dn', 'lang', 'tpt', 'vrsn_style', 'splash_url', 'seal_url', 'u1', 'u2', 'sopener', 'vrsn_splash', 'ver', 'v_ua', 're', 'v_old_ie', 'v_mact', 'v_mDown', 'v_resized']; for (var copy_i in copy) { window[copy[copy_i]] = iframe.contentWindow[copy[copy_i]]; } $('script#seal-sign').replaceWith(iframe.contentWindow.document.body.innerHTML); } }); 

Change the source code on this

 <script type="text/javascript" src="url_to_verysign"></script> 

to that

 <script id="seal-sign" type="text/javascript" src="url_to_hackseal.js"></script> 
+1
source

All Articles