performance
performance copied to clipboard
Embed Optimizer: Switch cross-origin embeds from preconnect to dns-pr…
Summary
Fixes https://github.com/WordPress/performance/issues/2247
Relevant technical choices
- Added a embed_optimizer_use_preconnect filter for flexibility.
- Default: use preconnect for same-origin, dns-prefetch for third-party.
- Verified in Chrome DevTools that fewer unnecessary preconnects occur.