Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32373

Add a js-sample that demos an adjunct being used in e.g. a Builder

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • js-builder

      See https://github.com/jenkinsci/js-samples. Doesn't have to be a Builder.

      One of the goals with this is to show that js-modules only loads a single copy of a bundle i.e. will not load it again if it's already been loaded (i.e. it only gets "exported" once as in this unit test and this unit test).

      To quote jglicks concern/query ....

      ... a scenario where an unbounded number of fragments from distinct plugins contributed to the initial page load, and several of those happen to require the same JS libs.

          [JENKINS-32373] Add a js-sample that demos an adjunct being used in e.g. a Builder

          Tom FENNELLY created issue -
          Tom FENNELLY made changes -
          Description Original: See https://github.com/jenkinsci/js-samples. Doesn't have to be a Builder.

          One of the goals with this is to show that [js-modules|https://github.com/jenkinsci/js-modules] only loads a single copy of a bundle i.e. will not load it again if it's already been loaded (i.e. it only gets "exported" once as in [this unit test|https://github.com/jenkinsci/js-modules/blob/master/spec/index-spec.js#L93-L97|]).

          To quote [~jglick]s concern/query ....
          {quote}
          ... a scenario where an unbounded number of fragments from distinct plugins contributed to the initial page load, and several of those happen to require the same JS libs.
          {quote}
          New: See https://github.com/jenkinsci/js-samples. Doesn't have to be a Builder.

          One of the goals with this is to show that [js-modules|https://github.com/jenkinsci/js-modules] only loads a single copy of a bundle i.e. will not load it again if it's already been loaded (i.e. it only gets "exported" once as in [this unit test|https://github.com/jenkinsci/js-modules/blob/master/spec/index-spec.js#L93-L97] and [this unit test|https://github.com/jenkinsci/js-modules/blob/master/spec/index-spec.js#L43-L47]).

          To quote [~jglick]s concern/query ....
          {quote}
          ... a scenario where an unbounded number of fragments from distinct plugins contributed to the initial page load, and several of those happen to require the same JS libs.
          {quote}
          Tom FENNELLY made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Tom FENNELLY made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 167985 ] New: JNJira + In-Review [ 182928 ]

            tfennelly Tom FENNELLY
            tfennelly Tom FENNELLY
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: