Expand my Community achievements bar.

SOLVED

Initializing JS components after loading offers

Avatar

Level 3

We are using Target loaded by Launch and consider using Target's Visual Composer with Experience Fragments exported from AEM. We also have quite a lot of components with custom JS initialization code which will be used in these fragments if we start using them.

What is the recommended way of calling this initialization right after an offer with a component is loaded? What event should our code handle to achieve this, if we don't know exactly when the offer will be loaded? Also, what will change in the approach if Launch's script is loaded with "async" or "defer"?

Our current Target version is 1.8.7.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Sorry for the confusion, our at.js version is actually 1.8.2.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

Sorry for the confusion, our at.js version is actually 1.8.2.