Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-44936

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

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? 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:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: