[wp-trac] [WordPress Trac] #16024: Conditional Comments for JS
WordPress Trac
noreply at wordpress.org
Tue Feb 17 13:48:35 UTC 2015
#16024: Conditional Comments for JS
--------------------------------------------------+-----------------------
Reporter: filosofo | Owner: azaozz
Type: enhancement | Status: closed
Priority: high | Milestone: 4.2
Component: Script Loader | Version: 3.1
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing dev-feedback | Focuses: template
--------------------------------------------------+-----------------------
Comment (by reypm):
I get lost at this point, are conditional scripts added to the CORE in
4.1? I'm discussing some theme optimization [here][1] at SO and this
ticket comes out but still don't get how to load scripts conditionally and
I can't find any docs around it, can any give me some advice? Also don't
know if this is the right place but I should ask also for the right way to
pass a variable from PHP side to jQuery as this [line][2] does, any advice
on this doubts?
[1]: http://wordpress.stackexchange.com/questions/178376/move-all-the-js-
files-to-the-bottomfooter-the-right-way
[2]: https://gist.github.com/paquitodev/ff96fe0cce53334a6e2f#file-header-
php-L68
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16024#comment:104>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list