Unlock Hidden Gems: Insider Secrets in WordPress 6.8 for Developers

Unlock Hidden Gems: Insider Secrets in WordPress 6.8 for Developers

This feature was initially released in April 2024 as the Speculative Loading plugin. Since then, contributors have refined the code until it was ready for inclusion in WordPress Core.

The new feature comes with several filter hooks for you to modify how speculative loading works:

  • wp_speculation_rules_href_exclude_paths: For excluding URL patterns from speculative loading.
  • wp_speculation_rules_configuration: For modifying the speculative loading configuration.
  • wp_load_speculation_rules: For including additional speculative loading rules.

useSelect performance warning

When you have SCRIPT_DEBUG enabled (as is common practice in development), WordPress will now output potential performance warnings in the console when useSelect is used to unnecessarily re-render. This change will benefit anyone extending the block editor and help them write more performant code.

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

You May Have Missed