Here's what I do to easily bulk load all my scripts whilst still keeping
everything in separate files:
<script type="text/javascript" src="scripts.php"></script>
And in scripts.php -
<?php
$scripts = array('lib/jquery.111.js',
'lib/jqModal.js',
'lib/datePicker.js',
'global.js');
foreach ($scripts as $script) {
readfile($script);
}
?>
Then I can easily add/remove scripts in the php file and as far as the
browser sees, it downloads them all as one file! Also unlike other
server-side solutions to this problem, it caches the scripts (as far as I
know).
Chris
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/