Currently for my site, I'm able to minify JavaScript and CSS code through linked <link> and <script> tags.
Example:
<script src="/inc/php/jsmin.php?f=inc/js/core.js"></script>
But, to reduce HTTP requests, I have inline scripts and styles as well. I also have inline scripts and styles because I don't need everything included on every page I make.
Is there a way I can use PHP DOM or something else to minify code on the same file that the script is running on?