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
Community showcase
Published yesterday in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

99 views 1 14
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