[wp-trac] Re: [WordPress Trac] #2701: Centralize javascript
inclusions
WordPress Trac
wp-trac at lists.automattic.com
Fri May 19 21:59:47 GMT 2006
#2701: Centralize javascript inclusions
----------------------+-----------------------------------------------------
Id: 2701 | Status: assigned
Component: General | Modified: Fri May 19 21:59:46 2006
Severity: normal | Milestone: 2.1
Priority: normal | Version: 2.1
Owner: mdawaffe | Reporter: mdawaffe
----------------------+-----------------------------------------------------
Comment (by mdawaffe):
If we allow query string like parameters to be passed through the
enqueuers and printers, we can get rid of a lot of the inline JS.
Everybody likes browser caching!
2701g.diff
1. Allow things like wp_enqueue_script( 'script?foo=bar' ) that calls
script.js?ver=3000&foo=bar.
1. Do this for the dbx stuff. Doesn't admin-header.php look pretty now?
This will give plugins a much better means of customizing the admin
panels. Currently, a lot of WP's decisions to include or not include
various JS bits is not accessible. Also, it's a nice resource for themes
and "front-face" plugins.
--
Ticket URL: <http://trac.wordpress.org/ticket/2701>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list