How to defer loading of a Norton Secure Site Seal?

前端 未结 3 1862
刺人心
刺人心 2021-02-09 20:15

I am displaying a Norton Secure Site Seal in a website and I would like to improve the page speed deferring the loading of the seal script. All the tries I\'ve done failed and I

3条回答
  •  春和景丽
    2021-02-09 20:51

    If you look at the code, they are using document.write.

    The way I handle this is the following

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

    Of course this is a very simple hack which only works when there's a single script which uses document.write and you know where you want it to be written to.

提交回复
热议问题