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?
"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.
# 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.
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With