I’ve developed a Google-home like portal for my school, and these widgets all work as separate iFrames. In creating this, I noticed that you must re-import JS libraries in each iFrame.
My question is this: would it be terribly inefficient if multiple iFrames imported the same library? Would the client have to download the same library multiple times? If so, is there a way to use the same library you already imported in the parent?
Thanks!
It gets cached by the browser so the browser uses it from the cache itself.