What is the VM prefix in the initiator column in Chrome Dev Tools Network Tab?
Asked Answered
P

1

14

In the Chrome Developer Tools Network Tab Initiator Column, sometimes a script has an Initiator which is prefixed with a VM.

My first thoughts are that this stands for Virtual Machine but what do the numbers then stand for?

If I click to view the source, it is still not clear to me what the origin of this script is?

Screenshot of Network Tools from Chrome

Phraseology answered 25/8, 2016 at 15:0 Comment(0)
C
8

It happens when the JavaScript code does not refer to some normally loaded JS file. For example when the code was executed with "eval". The number has no meaning.

Have a look at this StackOverflow thread for more information.

Champ answered 25/8, 2016 at 15:39 Comment(1)
"[VM] (scriptId) has no special meaning. It's a dummy name to help us to distinguish code which are not directly tied to a file name, such as code created using eval and friends."Phraseology

© 2022 - 2024 — McMap. All rights reserved.