WordPress.org

Make WordPress Core

Changes between Initial Version and Version 5 of Ticket #12009


Ignore:
Timestamp:
01/09/2012 05:14:08 PM (9 years ago)
Author:
scribu
Comment:

Alternatively, we could just add a filter to wp_print_scripts(), allowing users to add attributes when they need to.

As always, users find weird workarounds when the API doesn't oblige. For example, using the clean_url filter:

http://wordpress.stackexchange.com/a/38335/205

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12009

    • Property Cc trac@… added
    • Property Keywords needs-patch added
    • Property Milestone changed from Unassigned to Future Release
  • Ticket #12009 – Description

    initial v5  
    1 HTML5 supports async and defar attributes on script tags: http://www.w3.org/TR/html5/semantics.html#attr-script-async
     1HTML5 supports async and defer attributes on script tags: http://www.w3.org/TR/html5/semantics.html#attr-script-async
    22
    33Basic usage of these: