I have to build a small plugin for Jira/Confluence in order to inject JS.
I am aware about Web Resource module type that allows to inject JS depending the different context of the application. It allows to inject a <script> based on an aggregate of JS source from the Application, where the declared dependencies are analysed in order to have the correct JS.
The generated html looks like
But, how to process if a part of this injected JS has external dependencies not stored on the application. In final, I expect to have
Any idea ?
This is not possible directly to add external web resources. But there are some workaround that you can use,
Hopefully this helps.
Hi DPK J,
The solution could be a possibility if the downloaded resource is cached with some epxiration age, but I did not have yet find such usage in documentation.
The JS resource is a large one, and it would be not aceptable to reload it all the time without benefit of Browser cache.
I should test it as soon as the implementation is confirmed.
Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events