Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-44936

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

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              dwalker@atlassian.com Drew Walker
              dwalker@atlassian.com Drew Walker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: