Set up Nginx FastCGI page caching for WordPress so anonymous page views are served directly from disk without hitting PHP-FPM or MySQL, dramatically reducing server load.
Use the native loading="lazy" attribute, WordPress filter hooks, and a lightweight Intersection Observer fallback to lazy load all images and iframes on a WordPress site.
Implement debounce for live search inputs and throttle for scroll and resize handlers in WordPress themes to prevent excessive function calls and improve performance.
Turn on the MySQL slow query log, set the right threshold, and use mysqldumpslow and pt-query-digest to find and fix the queries slowing down WordPress.