sebarmeli
sebarmeli

Reputation: 18275

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

I have a huge script which is executed inside an iframe, so I was thinking to preload the script when the page starts being loaded and then execute it only when the frame is loaded.

Is it possible?

Cheers,

Upvotes: 0

Views: 374

Answers (1)

wong2
wong2

Reputation: 35720

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

Upvotes: 1

Related Questions