i'll preface this by saying that i am not the most accomplished coder. i apologize if there is an obvious answer to this. i also apologize if this would be better in feature requests or usage support.
discovery of the yslow and pagespeed plugins for firefox has tickled my OCD tendencies. i'm attempting to develop a theme that implements some of yahoo's best practices for speeding up web sites (http://developer.yahoo.com/performance/rules.html). implementing eTags, expires headers, gzip compression, and css sprites has helped performance a lot, especially after the first page load.
one of the rules i'm having trouble with is the saying to combine external javascript into one file in order to reduce http requests. since several plugins have their own js to load, i'd like to have a php file load all of those files into that one file and then call it from the theme pages. it was not too bad to get the jquery and zenphoto.js.php files into the file using simple `include()` calls. the trouble is trying to get any of the plugin scripts. when used outside of `zenjavascript()` (ie the php file i've made), the variable `$_zp_plugin_scripts` is empty.
any advice or ideas about getting the plugin javascript into my file would be appreciated. also if anyone can think of reasons not to do this (server time vs. client time, etc.) please share. it could also be that it doesn't matter much since eTags should be allowing the browser to cache scripts after the first page load that uses them.