[wp-trac] [WordPress Trac] #9346: wp_enqueue_script() doesn't work mid-page for footer scripts
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 23 11:08:12 UTC 2012
#9346: wp_enqueue_script() doesn't work mid-page for footer scripts
------------------------------------+---------------------
Reporter: Viper007Bond | Owner: azaozz
Type: defect (bug) | Status: closed
Priority: lowest | Milestone: 3.3
Component: JavaScript | Version: 2.8
Severity: minor | Resolution: fixed
Keywords: needs-docs needs-patch |
------------------------------------+---------------------
Changes (by michalsrodek):
* cc: michalsrodek (added)
* type: enhancement => defect (bug)
Comment:
Unfortunately it's not the best idea to add styles in the footer. In some
cases websites are loading very long and some parts are unstyled until
whole page is loaded. I think that it would be better to buffer everything
after head section using ob
functions(http://www.php.net/manual/en/ref.outcontrol.php).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9346#comment:34>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list