-
Task
-
Resolution: Unresolved
-
Minor
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
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} |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: Open [ 1 ] |
Workflow | Original: JNJira [ 167985 ] | New: JNJira + In-Review [ 182928 ] |