Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JavaScript file not fully loading through custom HTML script tag

Joel Ponce September 5, 2018

Hello,

I'm trying to add custom JavaScript to our Confluence Server site by referencing a file in our installation folder as described here: https://confluence.atlassian.com/confkb/how-to-use-javascript-in-confluence-313458839.html

When I try to load the site or the file directly (http://domain.com/includes/js/code.js) only part of the file is loaded. Using the example code, this is what is returned:

alert("test alert");'
// mo

I can't figure out why this is happening. The script tag is at the top of the "At the end of HEAD" section in Custom HTML and I ensured the script tag is closed. Other default js files fully load (login.js, watches.js, etc). What might be causing this?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events