adobe / aem-spa-page-model-manager

Interface between Adobe Experience Manager and Single Page Application framework.
Apache License 2.0
35 stars 24 forks source link

Conditionally add async tag in page editor clientlibs #2

Closed rachitkumar13 closed 4 years ago

rachitkumar13 commented 4 years ago

Context: When the editor is opened inside an iframe in edit mode the corresponding clientlibs should be rendered async.

Expected Outcome: When the PageModelManager identifies that it is loaded in the editor (isInEditor), script and style tags are being added to the DOM so that MessageChannel and placeholders can operate from within the iFrame of the Editor

grubyak commented 4 years ago

fixed in https://github.com/adobe/aem-spa-page-model-manager/pull/19