[wp-hackers] Let's make Buttonsnap fully obsolete
wordpress at dd32.id.au
Wed Apr 2 09:06:36 GMT 2008
On Wed, 02 Apr 2008 20:58:37 +1100, Andrew Ozz <admin at laptoptips.ca> wrote:
> Keeping it a .js file allows it to be cached in the browser and various
> network caches, so after the first loading it is a lot faster.
Theres no reason why a php file couldnt be cached correctly too.
> Perhaps it can be extended a bit by adding a js hook for additional
> buttons. These buttons could be either in inline js or separate js files.
That sounds like a good compromise to me,
A external js file is queued up, And inline js is printed out to the write
page, on document load, the inline js is used as teh config for the
external static functions.
More information about the wp-hackers