You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be truly standalone, each pagelet should be able to specify its CSS and JS dependencies. The dependencies that are known statically can be concatenated & deduped by the controller and included in the head or foot of the document, as appropriate. The dependencies that are only known dynamically should be loaded by the pagelet itself. For example, the BigPipe.onPagelet method could be:
var BigPipe.onPagelet = function(placeholderId, contentId, cssDependencies, jsDependencies) { ... }
Using a tool like require.js, the onPagelet code could lod the cssDependencies and jsDepenencies before rendering this pagelet.
The text was updated successfully, but these errors were encountered:
To be truly standalone, each pagelet should be able to specify its CSS and JS dependencies. The dependencies that are known statically can be concatenated & deduped by the controller and included in the head or foot of the document, as appropriate. The dependencies that are only known dynamically should be loaded by the pagelet itself. For example, the
BigPipe.onPagelet
method could be:var BigPipe.onPagelet = function(placeholderId, contentId, cssDependencies, jsDependencies) { ... }
Using a tool like require.js, the
onPagelet
code could lod thecssDependencies
andjsDepenencies
before rendering this pagelet.The text was updated successfully, but these errors were encountered: