Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-10046

Allow components to specify javascript or style sheets

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 3.7
    • None
    • None
    • We collect Jira 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

      Currently, if a component (custom field etc) wants to include javascript or css, it has to manually include it in the page. This increases the page load time.

      Another problem is that if javascript is needed on a few pages, there is a tendency to just include it at the top of all pages. (eg the javascript for the wysiwyg editor). Including all the javascript on the first page has the effect of making JIRA appear slow.

      Components should be able to specify that they need javascript / css, and it be rendered at the top of the page.

      One way in which this could be implemented is using content tags inside the html, and then in the decorators, pulling out the content tags, and specifying the javascript that is needed. That way if more than one content tag was specified, then only one file would be served. This is a clean separation of concerns, and also reduces the amount of bandwidth that is needed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              scott@atlassian.com Scott Farquhar
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: