Details
-
Suggestion
-
Resolution: Won't Do
-
None
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
- relates to
-
CONFCLOUD-44936 Documentation on how to load webresource scripts from the content rest API on the client-side
- Closed