Hi, I have seen a folder where there's too many js files with distinct functions, but in the google chrome developer tool it's loaded only One file, batch.js, inside this there are all the js scripts in include/js folder.
thnx
My understanding, and this a guess at best, is that batch.js is compiled (by that I mean compounded, not actually compiled) on the back-end and served up by the confluence web app. It includes more than just the scripts in the JS folder, but lots of JavaScript fragments. There's also a batch.css file that does a similar thing for style properties that are all over the place.
One reason they might do this is because the version of batch.css and batch.js that get transmitted appear to be optimized (whitespace stripped out). So it gives you the opportunity to view the sources of the batch files on the server in un-optimized format, but then saves bandwidth by transferring them as optimized.
I don't think you can insert anything into the batch files without touching server side code (and recompiling the web app. If you want to include a JS file, add a <script> to your Custom HTML in the Administration panel.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.