Documentation on how to load webresource scripts from the content rest API on the client-side

XMLWordPrintable

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.

      Currently I can see that you can return CSS and JS dependencies for content using the content rest API, but unfortunately it's unclear how to load javascript resources on the client-side. If you use the "tags" expansion, the script is not downloaded when adding this content to the DOM (unlike CSS). However, if I create script tags manually, then the scripts are downloading and executed in the order that they finish downloading (which causes javascript errors). It would be great to see documentation for a recommended approach to render content from the content API on the client-side.

              Assignee:
              Drew Walker
              Reporter:
              Drew Walker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: