12

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

James
  • 1,233
  • 3
  • 13
  • 18

1 Answers1

7

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.

Community
  • 1
  • 1
Gaël Métais
  • 804
  • 7
  • 7
  • "[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." – James Aug 25 '16 at 16:47