Reputation: 18275
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
Reputation: 35720
You can have a look at
HeadJS http://headjs.com/ or
LabJS http://labjs.com/ or other JavaScript loaders.
Upvotes: 1