[wp-trac] Re: [WordPress Trac] #3372: Consolidated JavaScript/CSS
Plugin API
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 20 00:47:27 GMT 2008
#3372: Consolidated JavaScript/CSS Plugin API
-----------------------------+----------------------------------------------
Reporter: robertaccettura | Owner: anonymous
Type: enhancement | Status: new
Priority: low | Milestone: 2.8
Component: Optimization | Version: 2.1
Severity: minor | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Comment (by DD32):
One of the problems with consolodating everything (particually styles) is
that they're not all unique, In the sense that some styles conflict
between stylesheets..
Theres also Conditionals which need to be taken into consideration for
styles, Then theres styles which are only registered if they're needed on
a page.
Then theres the extra load on the webserver having to load all of
WordPress's files, where before it could mearly load half a dozen static
files (Which load incredibly fast compared to PHP).
Scripts are a bit easier to combine, But still can have conflicts.
If you wish to have the files compressed, Most webservers come with
modules/functions to automatically compress the static files with gzip.
Theres also Gears which is caching scripts and styles locally for users..
And now theres this plugin i just wrote up to do the job.. It doesnt
support ltr styles, It breaks the CSS on every page, and most Javascript
refuse to load, and it doesnt compress (unless PHP is set to auto-
compress), It was mearly to see what can be done, and as a base for
someone else to work off potentially. (See Attachment)
--
Ticket URL: <http://trac.wordpress.org/ticket/3372#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list