I have a site that emails the user before rendering a confirmation page. I think (not sure) that logging in to Gmail and sending the email is what is slowing down the rendering of the confirmation page. How would I got about determining the cause of the slow rendering?
Some ideas I thought of: 1. Embedding a timeit statement/function after each function call and throughout the program and writing the timeit results to a log file 2. Using Google Search console to detect if there's any SEO or page speed issues 3. Chrome DevTools & Google Analytics to find specific page elements or network calls that are taking awhile