问题
Each request in the "Network" tab of the dev tools has an "Initiator" column.
For AJAX requests this is mostly useless since jQuery does all of the actual requesting and ends up in here.
I vaguely read something in Google's documentation (https://developers.google.com/chrome-developer-tools/docs/protocol/tot/network) about how the Initiator object actually contains a stack trace ... So: how can I get that?
回答1:
Late answer for this, but if you hover over the link for the Initiator the stack pops up in a hover. If you carefully navigate into the popup you can click to the source lines of calls further up the stack.
来源:https://stackoverflow.com/questions/14726402/get-request-initiator-stack-in-network-tab