[wp-trac] [WordPress Trac] #46469: wp_script_is() is super slow
WordPress Trac
noreply at wordpress.org
Mon Mar 18 22:53:17 UTC 2019
#46469: wp_script_is() is super slow
---------------------------+-----------------------------
Reporter: superdav42 | Owner: SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.2
Component: Script Loader | Version: 5.0
Severity: normal | Resolution:
Keywords: | Focuses: performance
---------------------------+-----------------------------
Comment (by superdav42):
Worth noting that WooCommerce calls `wp_script_is()` about 50 times in
[https://github.com/woocommerce/woocommerce/blob/c78098c248eb050c8214a1309a43e954f9b3739c/includes
/class-wc-frontend-scripts.php#L435 WC_Frontend_Scripts] so anyone running
almost any version of WC that enqueues a script on the frontend which
depends on wp-* will be affected by this slowdown. In WP core this is
limited to the edit screen which only performs 1 call to `wp_script_is()`
so the slowdown is not as noticeable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46469#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list