Include JavaScript that depends on other JavaScript being included

Sometimes I must include additional JS files that depend on other (stock XF) JS files being included, for example I would like to include js/vendor/product/message.js after xf/message.js but only if message.js is included.

So far I'me doing this by looping through getIncludedJs() but it feels complicated as I have to check several possibilities (minimized vs. not mininized, production / rollup vs. dev).

Does anybody know a more elegant / efficient way to accomplish...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ