This would have many advantages:
- It would make it easier to control cache-control.
- Minifying it would reduce bandwidth used and download time
- It would force mod authors to include their script in the footer
How mod authors should tell script.php to include their script
I think that there should be something similar, again, to style.php - using
@import. This would have the disadvantage of possible conflicts during installation / uninstallation, but is better than the alternative - if there is a
Another alternative would be to have a list of files to include in the database, as this would remove the possibility of conflicts.
I would suggest against automatically including all files found in a certain directory / set of directories.