Generate Javascript file with PHP
问题 My current code I have started writing an API that loads, minifies and returns javascript files into one file using PHP. This is achieved by pointing to a PHP file from a script tag in HMTL like so: <script type="text/javascript" src="https://libraries.sinemaculammviii.com/jsapi.php"></script> This jsapi.php page processes the javascript files and outputs the minified javascript, with the header: header("Content-Type: text/javascript"); My Question Is this a bad method to load javascript