Posts Tagged → javavascript
This file should be called js_load.php and it should be placed in the same directory as all other js files. Usage would be:
This runs nice and fast and does the trick. An improvement would be to store a cached version of the output and to check the file dates when accessed and only update the cache when there is an update, rather than have to read through and output the actual files each time.
Note, some testing showed almost no difference in speed between file_get_contents() and fpassthru().