For webpages using jQuery, will the Googlebot index them on “page load” or after the “page ready” state?

Will the Googlebot index a web page on “page load” or after the “page ready” state. The reason I’m asking is because I’m trying to change my h1 and h2 tags using jQuery on page Load?

Is this possible?