Make WordPress Core

Changeset 56033 for trunk/.jshintrc


Ignore:
Timestamp:
06/26/2023 01:40:31 PM (8 months ago)
Author:
joemcgill
Message:

Script Loader: Add support for HTML 5 "async" and "defer" attributes.

This allows developers to register scripts with an intended loading strategy by changing the $in_footer parameter of wp_register_script and wp_enqueue_script to an array that accepts both an in_footer and strategy argument. If present, the loading strategy attribute will be added to the script tag when that script is printed to the page as long as it is not a dependency of any blocking scripts, including any inline scripts attached to the script or any of its dependents.

Props 10upsimon, thekt12, westonruter, costdev, flixos90, spacedmonkey, adamsilverstein, azaozz, mukeshpanchal27, mor10, scep, wpnook, vanaf1979, Otto42.
Fixes #12009.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.jshintrc

    r46587 r56033  
    2020        "_": false,
    2121        "Backbone": false,
     22        "console": false,
    2223        "jQuery": false,
    2324        "JSON": false,
     
    2526        "export": false,
    2627        "module": false,
    27         "require": false
     28        "require": false,
     29        "Set": false
    2830    }
    2931}
Note: See TracChangeset for help on using the changeset viewer.