RSS Feed/News Include JavaScript that depends on other JavaScript being included

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
25,998
Points
823

Reputation:

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

Continue reading...
 
Status
Not open for further replies.
Top