[wp-trac] [WordPress Trac] #61027: Bundled themes: edit front-end JS to work with Interactivity API (was: Twenty Twenty-One: Replace front-end JS with Interactivity API)

WordPress Trac noreply at wordpress.org
Mon Apr 29 18:26:33 UTC 2024


#61027: Bundled themes: edit front-end JS to work with Interactivity API
-----------------------------+------------------------------
 Reporter:  adamsilverstein  |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Bundled Theme    |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  performance
-----------------------------+------------------------------
Changes (by sabernhardt):

 * type:  defect (bug) => feature request


Old description:

> This ticket focuses on removing jQuery as a frontend dependency for
> Twenty Twentyone when the site is running WordPress >= 6.5 where we can
> leverage the Interactivity API instead.
>
> 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.

New description:

 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.

--

Comment:

 Let's discuss any possible integrations in (classic) bundled themes on
 this ticket.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61027#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list