[wp-trac] [WordPress Trac] #55030: wp_enqueue_script( 'jquery-ui-autocomplete' ) - is enqueueing a bunch of extra scripts I don't need
WordPress Trac
noreply at wordpress.org
Tue Feb 1 16:56:14 UTC 2022
#55030: wp_enqueue_script( 'jquery-ui-autocomplete' ) - is enqueueing a bunch of
extra scripts I don't need
--------------------------+-----------------------------
Reporter: wpfed | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When I enqueue default scripts located in WP, specifically
{{{#!php
<?php
wp_enqueue_script( 'jquery-ui-autocomplete' )
}}}
All of these extra scripts are also loaded on the front-end:
wp-includes/js/dist/a11y.min.js
wp-includes/js/dist/i18n.min.js
wp-includes/js/dist/hooks.min.js
wp-includes/js/dist/dom-ready.min.js
wp-includes/js/dist/vendor/wp-polyfill.min.js
wp-includes/js/dist/vendor/regenerator-runtime.min.js
I was using this reference:
https://developer.wordpress.org/reference/functions/wp_enqueue_script
/#default-scripts-and-js-libraries-included-and-registered-by-wordpress
Is this normal behavior?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55030>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list