If you are using the open source Firefox web browser to browse YouTube and watch its videos, then you might have noticed that there is an artificial delay
Google slows down Firefox users when watching YouTube....
I know that you are memeing - but some ppl probably don't have the background to see the difference.
A ping does not contain a http header containing a user agent. The response to a ping is not a webpage - and even if it was, your console won't execute the JS.