Currently I place a large array in a cached file, that gets loaded into an iframe
.
The data gets loaded into a javascript variable.
Now I have the variable containing the data and do not need the javascript that was used to load it (the script tag in the iframe
)
I find that I cannot get rid of this script tag (really the DOM 'copy' of it).
I thought deleting the iframe would do it, but does not.
Is there a way to do this?
If I use ajax to download the data, I do not have this extra bulk, but then it takes time to download each time.
OR
Is there a better way to do this?