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

前端 未结 2 1478
执念已碎
执念已碎 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: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.

提交回复
热议问题