[wp-trac] [WordPress Trac] #12932: Use the enqueue API for twentyten

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 15 04:29:02 UTC 2010


#12932: Use the enqueue API for twentyten
-------------------------+--------------------------------------------------
 Reporter:  ptahdunbar   |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  3.0      
Component:  Template     |     Version:  3.0      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------

Comment(by mikeschinkel):

 Replying to [comment:1 freddyware]:
 > Isn't it pretty pointless to remove a hardcoded stylesheet in a
 template? After all, themes are supposed to be associated with a
 stylesheet... unless this modification is supposed to make it possible to
 remove the stylesheet from a theme? (Why would someone do that?)
 > To date, I have not yet seen a single theme that uses enqueue to load
 their stylesheets. It would make theme development (e.g. in a testing /
 IDE environment) a LOT harder.
 > Moreover, this isn't really a bug; it's an enhancement.

 I'm not 100% sure of this, but I'm pretty sure that ''not'' using enqueue
 should be considered a bad practice, even if it is a bit harder.  Why?  If
 not used then WordPress can't collect all the stylesheets and serve them
 on one HTTP GET request. Not using enqueue thus dooms the website to many
 unnecessary HTTP requests and violates the first "rule" in website
 performance improvement, see:

 http://developer.yahoo.com/performance/rules.html

 JMTCW, anyway.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12932#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list