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