[wp-trac] [WordPress Trac] #16024: Conditional Comments for JS
WordPress Trac
noreply at wordpress.org
Sun Dec 21 20:45:26 UTC 2014
#16024: Conditional Comments for JS
-------------------------------------------------+-------------------------
Reporter: filosofo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future
Component: Script Loader | Release
Severity: normal | Version: 3.1
Keywords: has-patch needs-testing dev- | Resolution:
feedback | Focuses: template
-------------------------------------------------+-------------------------
Comment (by GregLone):
Replying to [comment:76 sarukuku]:
> @grapplerulrich I think we could. With the {{{script_loader_tag}}} it's
now fairly simple to write a plugin to do it or just add a functio to you
theme that takes care of it. Maybe post an example here to this ticket and
then close it?
We were able to achieve the exact same thing before 4.1, with the filter
{{{script_loader_src}}} (unless {{{do_concat}}} is true).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16024#comment:77>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list