Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does :-infinity mean in Initiator column of Chrome dev tools

While debugging why my service worker (sw.js) gets loaded twice when I reload the page that registered it (that's background, not the question) I notice in the 'Initiator' column in Chrome dev tools the initiator is given as: sw.js:-infinity.

What does :-infinity mean in this context?

like image 277
Bitterjug Avatar asked Oct 13 '17 14:10

Bitterjug


People also ask

What does initiator mean in developer tools?

"Initiator Other" usually means the network request was made from a user, not from Chrome, a redirect or a script. The request was fired when someone clicked a button (this is what your analytics is probably tracking). You can read more about this in the Chrome DevTools docs.

How do I fix dev tools in Chrome?

# Open the Issues tab Open DevTools. Click the Go to Issues button in the yellow warning bar. Alternatively, select Issues from the More tools menu. Once you're on the Issues tab, click the Reload page button if necessary.

What are 3 ways to open developer tools in Google Chrome?

To open the developer console in Google Chrome, open the Chrome Menu in the upper-right-hand corner of the browser window and select More Tools > Developer Tools. You can also use Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux).


1 Answers

I think this is a Chrome bug because:

Infinity is a numerical value representing positive infinity. -Infinity is a numeric value that represents negative infinity. Infinity is displayed when the number exceeds the upper limit of floating point numbers, which is equal to 1,779693134862315E + 308.

like image 117
David Agasiev Avatar answered Oct 15 '22 04:10

David Agasiev