Sometimes, it's difficult to tell when a piece of code starts and when it ends. Is it possible to add markers to Chrome's Timeline tool?
Use console.timeStamp(markName)
. See https://developers.google.com/web/tools/chrome-devtools/debug/console/track-executions#marking-the-timeline for reference.