[wp-hackers] AJAX / JS libraries
false.hopes at gmail.com
Sun Apr 23 21:07:08 GMT 2006
On 4/23/06, Andy Skelton <skeltoac at gmail.com> wrote:
> Yeah, I'd love to start using Prototype and Scriptaculous in more
> places in the admin and even have it available to themes. Getting rid
> of Sack would be great.
+1 on prototype and the removal of sack
I'm iffy on the thought of Scriptaculous. Scriptaculous is relatively
huge, and after the addition of TinyMCE I'm not sure if we should be
like to see something like moo.fx, which is beautiful and tiny (3KB)
> 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).
> 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"
-1, because of the following caveat
> Caveat: each combination of libraries would be downloaded and cached
> without regard for the desired script already having been downloaded
> in another combination.
More information about the wp-hackers