Checking someones bandwidth and loading content based on it

后端 未结 6 1612
忘掉有多难
忘掉有多难 2021-02-14 21:29

I have seen a number of questions that don\'t answer this, is it possible to check someones bandwidth using java script and load specific content based on it?

The BBC se

6条回答
  •  臣服心动
    2021-02-14 22:26

    I've knocked this up based on timing image downloads (ref: http://www.ehow.com/how_5804819_detect-connection-speed-javascript.html)

    Word of warning though:

    It says my speed is 1.81Mbps,

    But according to SpeedTest.Net my speeds are this:

    enter image description here

    The logic of timing the download seems right but not sure if it's accurate?

提交回复
热议问题