is it possible to load and use jquery in the parent iframe page & inside the iframe whithout loading jquery twice,
meaning to load jquery just once in the page and using it in the ifrmae within.
is it possible to load and use jquery in the parent iframe page &
Share
Sure, just make sure the
<iframe>isn’t loading the jQuery script i.e.<script src="....">then you can access the jQuery instance in the parent like so:Be sure to use the correct context using the second parameter:
If this isn’t possible you can’t “prevent” a script from being downloaded and executed.