[wp-trac] [WordPress Trac] #22249: Add ability to set or remove attributes on enqueued scripts and styles.

WordPress Trac noreply at wordpress.org
Thu Jul 18 10:53:31 UTC 2019


#22249: Add ability to set or remove attributes on enqueued scripts and styles.
-------------------------------------------+-----------------------------
 Reporter:  ryanve                         |       Owner:  (none)
     Type:  enhancement                    |      Status:  assigned
 Priority:  normal                         |   Milestone:  Future Release
Component:  Script Loader                  |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  early has-patch needs-testing  |     Focuses:
-------------------------------------------+-----------------------------

Comment (by Mte90):

 Just a ping to know the status of this ticket and a suggestion.
 Working with different web services often happen that to script doesn't
 want only defer/async but also an id or custom data-* attributes.
 Right now I am doing with `wp_print_scripts` with an echo to avoid any
 issues but is not very wordpress friendly.

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


More information about the wp-trac mailing list