[wp-trac] [WordPress Trac] #60986: Twenty Twelve: Replace front end jQuery usage with Interactivity API
WordPress Trac
noreply at wordpress.org
Wed Apr 10 19:58:08 UTC 2024
#60986: Twenty Twelve: Replace front end 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: needs-patch
Focuses: javascript, performance |
-------------------------------------+-----------------------------
This ticket focuses on removing jQuery as a frontend dependency for Twenty
Twelve 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/54171 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/60986>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list