Gadgets should always provide an AMD loader

XMLWordPrintable

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

      Any gadget that loads in an iframe needs a complete dependency graph for its resources to work.

      Some resources require "platform" pieces of javascript – some web-resources that expose libraries or behaviours that everybody should just get, but should not have to explicitly depend upon.

      Traditionally, JIRA has provided the superbatch as this "you get these things 'for free' " mechanism.

      Gadgets do not include the superbatch.

      This means that anything a gadget wants that's in the superbatch it will need to explicitly depend upon.

      Amongst those things is an AMD loader.

      Manual inclusion of an AMD loader is not scalable and shouldn't be the solution. Automatic inclusion of the loader at a platform level is the desired approach.

            Assignee:
            Unassigned
            Reporter:
            Daz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: