开发者

Any way to preload a script executed in an iframe later?

开发者 https://www.devze.com 2023-03-02 18:49 出处:网络
I have a huge script which is executed inside an iframe, so I was thi开发者_Python百科nking to preload the script when the page starts being loaded and then execute it only when the frame is loaded.

I have a huge script which is executed inside an iframe, so I was thi开发者_Python百科nking to preload the script when the page starts being loaded and then execute it only when the frame is loaded.

Is it possible?

Cheers,


You can have a look at
HeadJS http://headjs.com/ or LabJS http://labjs.com/ or other JavaScript loaders.

0

精彩评论

暂无评论...
验证码 换一张
取 消