[wp-trac] [WordPress Trac] #64097: Add load_on_client_navigation option to wp_register_script_module
WordPress Trac
noreply at wordpress.org
Wed Oct 15 20:14:57 UTC 2025
#64097: Add load_on_client_navigation option to wp_register_script_module
--------------------------------------+------------------------------
Reporter: samueljseay | Owner: samueljseay
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Interactivity API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by westonruter):
I'm not sure this should be part of core yet. Isn't the client navigation
navigation still just an experiment in Gutenberg? I think we should rather
use filters in Gutenberg to add the desired data attribute to the `SCRIPT`
tag. This can be done via the `wp_script_attributes` filter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64097#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list