[wp-trac] [WordPress Trac] #60985: Twenty Fifteen: Replace frontend jQuery usage with Interactivity API
WordPress Trac
noreply at wordpress.org
Wed Apr 10 19:55:32 UTC 2024
#60985: Twenty Fifteen: Replace frontend jQuery usage with Interactivity API
-------------------------------------+-----------------------------
Reporter: adamsilverstein | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Keywords:
Focuses: javascript, performance |
-------------------------------------+-----------------------------
This ticket focuses on removing jQuery as a frontend dependency for Twenty
Fifteen when the site is running WordPress >= 6.5 where we can leverage
the Interactivity API instead.
This is similar to https://core.trac.wordpress.org/ticket/54172 which
proposes replacing jQuery with vanilla JavaScript.
Note:
- Leveraging the Interactivity API for core themes will help us test and
consume our own APIs.
- The Interactivity API will already be enqueued if any block leveraging
the API is used (Query, expanding Search and Navigation for example)
- Existing code would stay in place for cases where the theme is used on
WordPress < 6.5.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60985>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list