[wp-trac] [WordPress Trac] #35264: wp_enqueue_script does not allow different types

WordPress Trac noreply at wordpress.org
Wed Dec 30 11:48:25 UTC 2015


#35264: wp_enqueue_script does not allow different types
---------------------------+------------------------------
 Reporter:  mampf          |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:  4.4
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by mampf):

 Replying to [comment:1 swissspidy]:
 > Why do you want to use `wp_enqueue_script()` for this? AFAIK json-Id
 data needs to be inline, while `wp_enqueue_script()` is specifically for
 external JavaScript.

 I'd love to use some kind of caching. You are right, it needs to be
 inline. Is it even possible to cache an inline script?

 Sorry for opening a ticket, I wasn't aware it needed to be inline.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35264#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list