[wp-trac] [WordPress Trac] #64361: Leverage HTML API to implement block template skip link

WordPress Trac noreply at wordpress.org
Fri Dec 5 01:17:06 UTC 2025


#64361: Leverage HTML API to implement block template skip link
-------------------------+--------------------------------------
 Reporter:  Slieptsov    |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  7.0
Component:  Themes       |     Version:  5.8
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  javascript, performance
-------------------------+--------------------------------------
Description changed by westonruter:

Old description:

> When `the_block_template_skip_link()` (now
> `wp_enqueue_block_template_skip_link()`) was introduced in #53176 there
> was no HTML API which necessitated JavaScript to add the skip link. This
> can now be revisited to leverage `WP_HTML_Tag_Processor` to add the skip
> link.
>
> The inline JavaScript can then be eliminated.
>
> The CSS should also be minified.
>
> ----
>
> Can skip link CSS/JS be minified?
>
> https://github.com/WordPress/wordpress-
> develop/blob/0b50baa5d164bedd17d3ae9e2eafc6286d6255b6/src/wp-includes
> /theme-templates.php#L172

New description:

 When `the_block_template_skip_link()` (now
 `wp_enqueue_block_template_skip_link()`) was introduced in #53176 there
 was no HTML API which necessitated JavaScript to add the skip link. This
 can now be revisited to leverage `WP_HTML_Tag_Processor` to add the skip
 link.

 The inline JavaScript can then be eliminated.

 The CSS should also be minified.

 ----

 ''Original description:''

 Can skip link CSS/JS be minified?

 https://github.com/WordPress/wordpress-
 develop/blob/0b50baa5d164bedd17d3ae9e2eafc6286d6255b6/src/wp-includes
 /theme-templates.php#L172

--

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


More information about the wp-trac mailing list