Setting dependency on an Extension

Rookie Contributor

Hey there,


We are creating our custom library inside an Extension and another extension that calls this library. Both of them are just javascript codes.


We are wondering if


1. Are extensions the best practice to create custom javascript codes and inject it into the page

2. If it is, how do I add functionality in extension that waits for another extension to finish before executing the other ones.


Hope anyone can help me with this.






Setting dependency on an Extension

Gold Contributor
Gold Contributor

Hello @felixagung,

I would suggest you to have a look at the below document which helps you to know the Order of operations intended to Extension.

Hope it helps!