That seemed too easy and apparently was, Chrome is throwing an error when trying to load it:
Refused to execute script from 'http://confluence/download/attachments/4426187/HotFixCreation.js' because its MIME type ('application/x-upload-data') is not executable, and strict MIME type checking is enabled.
Any ideas how I can use my .js attachments?
$.getScript is to include the file content in the body of the page. It's to work around the cache... it solve the shituation, but it's not a best practice.
To change the content type of an attachment, please visit the view page attachment (viewpageattachments.action) and click in Properties of the js file.
Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time! We're looking for people to participate in a remote 1-hr workshop...
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!
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