summaryrefslogtreecommitdiffstatshomepage
path: root/.jshintrc
diff options
context:
space:
mode:
authorJoe McGill <joemcgill@git.wordpress.org>2023-06-26 13:40:31 +0000
committerJoe McGill <joemcgill@git.wordpress.org>2023-06-26 13:40:31 +0000
commit613b0e7dc91f9f94c640717df01b636d0cfea539 (patch)
treeef7dc86dd038331a7f585c29789b3dbc8134a4e2 /.jshintrc
parent4d6c6eefae74aa3d41a6ce80734a5f67b48f5f91 (diff)
downloadwordpress-613b0e7dc91f9f94c640717df01b636d0cfea539.tar.gz
wordpress-613b0e7dc91f9f94c640717df01b636d0cfea539.zip
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56033 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to '.jshintrc')
-rw-r--r--.jshintrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/.jshintrc b/.jshintrc
index 20dadcd1fa..f0e6b02645 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -19,11 +19,13 @@
"globals": {
"_": false,
"Backbone": false,
+ "console": false,
"jQuery": false,
"JSON": false,
"wp": false,
"export": false,
"module": false,
- "require": false
+ "require": false,
+ "Set": false
}
}