[ad_1]
I am trying investigate my slow loading website with Query Monitor. It shows it used 0.0218s for all The “Database Queries”, but 3.9493s for “Page Generation Time”.
So only 0,5% is spent on Database Queries. How can I find out where all the rest of the time is spent?
I tried the waterfall view in the developer tools, but they only show one very long bar at the root document. It is driving me insane that I just can’t find out what is causing this delay.
Please help 🙏
[ad_2]
so from the numbers, it seems like the database is probably fine. .02 for queries is not a ton of time. 4s of page generation sounds like you are using a very heavy page builder, with a lot of content.
you can look into prerendering and caching, but that will depend on how dynamic the page is, your theme, and your ability to edit code.
I also found a plugin that does exactly that: [https://wordpress.org/plugins/code-profiler/](https://wordpress.org/plugins/code-profiler/)