Script tag custom ordering

Just a small comment on script tag ordering. There really is a need to be able to control the ordering of script tags. For example, moment.js has to be loaded before moment-timezone-with-data.js

I also have custom scripts which have to load before (sometimes after) certain scripts. Currently, the simple solution is to rename the script filename like how I would in a Linux “init.d”. For example:
01_moment.js 02_moment-timezone-with-data.js

But this is weird since I should have already been able ot do the reordering in Bootstrap Studio itself.

I tried disabling the script files and putting new script tags in a custom code right after the body tag, but no sale (they’re simply not included in a preview or export).

Just wishing…

As i know, you can right click Javascript in Design Tab, and then choose ‘Include Order’, you can set the order of js via this menu.

2 Likes

You are correct.

This rigid programmer-brain of mine would have never guessed it was in “JavaScript” itself as it looked more like a sidebar label/dropdown control.

Intuitively, I thought right-clicking on the js file itself (e.g. moment.js) would have exposed the “include order” function in the context-sensitive menu.

I also did search the forum for this topic before posting.

Thanks raniaamina

1 Like

Yeps; You’re welcome @f96