In WordPress 6.9, the client-side navigation feature provided by the @wordpress/interactivity-router module has been expanded to cover additional use cases that were previously unsupported.
Support for new script modules and stylesheets
Previously, only the HTML of the new page was updated, keeping the styles present in the initial page and ignoring any new script modules. This worked for basic client-side navigation cases, but it didn’t handle more complex situations, such as when new blocks appear on the next page.
With this update, WordPress now replaces stylesheets and loads any script modules after client-side navigation.
The new algorithm reuses the
Click here to continue reading this article.
