How to load javascript from parent into child context
===

I have one HTML page with parent.js in it. Within that html, one iFrame will be created on runtime. This iframe needs the parent.js in its context.
If I am having one

    function save() { ... }

in the parent.js, I can call that from iframe.js, like

    parent.save();

But i need to call that in the iframe context, like

    save();

So I have loaded the parent.js again in the iframe html. This makes parent.js to be loaded everytime I create a new iframe.

Is there anyway I could reuse the parent.js which is already loaded, into each iframe created?, like

    loadParentJS("parent.js");

within iframe.js. This shouldn't give another request to application server.