[wp-hackers] AJAX / JS libraries

Michael D Adams mikea at turbonet.com
Mon Apr 24 20:47:50 GMT 2006

On Apr 23, 2006, at 1:55 PM, Andy Skelton wrote:
> We ought to have a set of core PHP functions to handle javascript
> includes. Sort of like a wrapper for
> add_action(is_admin()?'admin_head':'wp_head', $callback) where
> $callback cannot be registered twice and known dependencies can be
> handled (e.g. if Scriptaculous, include Prototype).
To jump on the bandwagon: +1.  That is a very nice idea.

> Another possibility is to write a gzip compressor that concatenates
> all of the requested js libraries and compresses them. This would
> reduce bandwidth in most cases.
> script src="wp-includes/js/wp_js.php?prototype+scriptaculous"
To continue to do so (for the same reasons others have better put): -1


More information about the wp-hackers mailing list