Loading external sites into Iframe dynamically - is there a better way?

前端 未结 2 1477
执念已碎
执念已碎 2021-01-28 13:03

I\'ve build an application which currently uses an Iframe to load external sites.

This method is really slowing my application down - taking up to 5 seconds to load a pa

相关标签:
2条回答
  • 2021-01-28 13:29

    You should jQuery with the function

    $(function(){ $("#NameImage").css('display','none')})
    

    But you should use the function of jQuery v1.7.3

    0 讨论(0)
  • 2021-01-28 13:46

    @Simon, if you are loading sites into an iFrame then you are probably doing a thumbnail right? Doing this is going to be slow as each page needs to render in yours so you are contending with the speed of the external site by a factor of n where n is the number of sites on your page.

    Please provide more info on what the outcome is that you want so that the greatter community can advise on perhaps different tactics.

    0 讨论(0)
提交回复
热议问题