Where I can load a new js file? something like "menu-min.js"

Hi, I need to include a new js-file just like the "menu-min.js" file, in this file is where load the jquery from tools menu... something know how I can add a new js??

thnx..

3 answers

In your Confluence install, you would typically add JS files to the following location:

\confluence\includes\js

This is where the menu-min.js file resides. You will need access to the server.

hth,

matt

Yep, but those js files are loaded in another place... I think is in batch.js where the js libraries are loaded... I don't understand it...

Those files are all batched up by references, but there's nothing stopping you from putting your own file in there and then adding a reference to it from your Custom HTML page in the Admin console like this:

<script src="/confluence/includes/js/my_new_js_file.js"></script>

Those files are all batched up by references, but there's nothing stopping you from putting your own file in there and then adding a reference to it from your Custom HTML page in the Admin console like this:

<script src="/confluence/includes/js/my_new_js_file.js"></script>

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 8 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

85 views 2 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you