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?