Question Locked

Homepage Rendering Delay in WordPress

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hey everyone,

I’m facing a puzzling issue with one of my WordPress projects. The homepage takes 8–10 seconds to load fully, while all inner pages (posts, archives, contact, etc.) load within 1–2 seconds. I’ve already tried standard fixes — deactivated all plugins, optimized media, switched to a default theme (Twenty Twenty-Four), and cleared all caches — but the delay persists.

Interestingly, the delay seems to occur before the first byte is received, suggesting something server-side. Could this be related to a custom query in functions.php, an inefficient WP_Query loop in the template, or a database call stacking issue?

Has anyone dealt with a similar bottleneck or found an effective way to profile homepage-level queries and hooks in WordPress? I’d love to hear your insights or recommended tools for diagnosing this deeper issue.

5 replies

by kees_b

It seems time to experiment. Try again with a minimal homepage. Just a "hello world" and some links to inner pages. Then gradually build up the homepage and see the effect of each addition.

by thecalcoloiva

The delay before the first byte suggests a server-side issue, possibly a custom query in functions.php, an inefficient WP_Query loop, or database call stacking. Use tools like Query Monitor or New Relic to profile homepage queries and hooks. Check server logs or contact your host to rule out backend bottlenecks. 🙂

by megansteve7578 edited

:

Enable Query Monitor plugin → check “Slow Queries” and “Hooks” on homepage.

Look for custom WP_Query loops or get_posts() calls in functions.php or front-page.php.

Check for transients or API calls delaying response.

If using a page builder or slider, disable it and recheck.

Run object caching (Redis or Memcached) and enable persistent cache.

Most likely: a slow custom query or function hooked to template_redirect or wp_head.

by clarapenrose11 edited

Hey, I’ve experienced a similar issue before where the homepage delay happened before the first byte, and it turned out to be a server-side query problem. In many cases, this comes from an inefficient WP Query, a custom function in functions php, or a filter like pre get posts that runs heavy database calls on the homepage.
I’d recommend using the Query Monitor plugin to inspect slow queries and hooks,and checking if any unnecessary queries or loops run only on the homepage. Also, enabling SAVEQUERIES in wp config php or using tools like New Relic can help trace the delay precisely. Often, optimizing or caching that single slow query solves the issue.

by ariah3225 edited

Yes — it’s likely a slow query or heavy hook running only on the homepage. Use Query Monitor or Debug Bar plugins to profile database queries and hooks. Also, enable SAVEQUERIES in wp-config.php to log query times. Check your theme’s front-page.php or custom loops in functions.php for inefficient WP_Query calls or heavy API requests.

This discussion is closed to new replies.