0

About my app

I am developing a hybrid desktop application. I use jcef(a chromium embedding framework) to embed a webview inside a java swing application. I currently use just vanilla js with no bundlers.

Problem

I have multiple iframes in my application where I load third-party created-content (served from same domain). These frames will work as UI plugins. I will use libraries like react and ant design(a react component library) and I want third-party iframes to use these libraries as well for consistency. But I need to open around 5 iframes or more at once which concerns me.

Question

  • Is it possible to load these libraries once and use only one instance of them across all the iframes? If so how?
user11629899
  • 19
  • 1
  • 5
  • 2
    You can have a look at this duplicate question: https://stackoverflow.com/questions/39332663/how-to-access-parent-libraries-from-an-iframe Unfortunately I can't mark it as a duplicate because whomever asked that question never marked it as answered. – icecub Dec 17 '22 at 15:31

0 Answers0