I have an HTML page with JavaScript in it and when I view the source of the page in my Browser(s), the JS comments are stripped out and the JS code is all on one line. I will call this reduced code as it is not fully minified. I do not want this. I have told my host and he is working with the server guys but so far no luck in fixing. The code is not reduced if the JavaScript has an error so I am assuming something on the server is validating the code and reducing it. The same code on a different server is not being reduced so it is not my Browser.
Here is a screenshot of the code - I have downloaded it with FTP and it is still normal on the server so was not changed during uploading.
Here is a screenshot of what I see in the source (it is the same in Chrome, Firefox and Edge).
Note: We are not using a CDN like CloudFlare. It is an Apache 2.4.51 server on linux.
Any ideas I could suggest to the tech support? Please keep in mind that I am not a server guy.
Ask them for an SFTP connection to the server folder where your HTML files are served from. Upload your HTML file to the server folder with FileZilla over the SFTP connection. This should hopefully bypass whatever server side javascript minification script they are running.