It recently occured to me that instead of causing unnecessary HTTP requests
with lines like these:
<link rel="stylesheet" href="style.css"> <script src="script.js"> </script>
I could put both the CSS and Javascript into the HTML file, saving the browser
two HTTP requests. So the lines would look like this:
<style>
<?php include("style.css"); ?>
</style>
<script>
<?php include("script.js"); ?>
</script>
Why isn't this widespread? It seems like a pretty smart thing to do.












