I want to create a page loading message based on php when the wp page is starting to load. is there a hook about it? simply like opposite of wp_loaded?

wp_loaded is after the page is fully loaded, I wan't the opposite of it..

1 Answer 1


Well, when exactly do you consider the page to be "starting to load"?

get_header() is typically the first function to fire as the html of a theme is starting to generated. It fires the get_header action. Numerous hooks fire prior to that, at different points, the very earliest being muplugins_loaded I believe.

wp_loaded, by the way, is not when the page has fully loaded but only after WordPress has loaded. There is a difference. A number of things happen before the page is created and sent to the browser.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.