[wp-trac] Re: [WordPress Trac] #8884: Bug In wp_enqueue_script() In Footer

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 19 09:52:36 GMT 2009


#8884: Bug In wp_enqueue_script() In Footer
--------------------------+-------------------------------------------------
 Reporter:  GamerZ        |        Owner:  azaozz
     Type:  defect (bug)  |       Status:  new   
 Priority:  high          |    Milestone:  2.8   
Component:  JavaScript    |      Version:  2.8   
 Severity:  normal        |   Resolution:        
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by GamerZ):

 1. Yea! I think we should add wp_enqueue_scripts" that would run on client
 side only. I am still back to the old method or hooking onto "wp_footer"
 using register/print scripts. I personally like the enqueue script
 function as I just need 1 function to print out the JS script.


 2. Hmmm, but if WP2.8 is focus on optimizing JS, I think we should have it
 called in the wp_footer as well as. Because no matter what, if the
 plugin's Javascript wants to be printed in the footer, it seems that
 wp_footer() is the only choice.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8884#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list