Answer the question
In order to leave comments, you need to log in
Is it possible to find out via JavaScript whether a visitor has entered the site from wifi or mobile Internet?
The question arose, is it possible to find out by means of JavaScript what type of connection a mobile user uses --- WiFi or not? Actual for smartphones / tablets under ios, android, microsoft mobile.
Answer the question
In order to leave comments, you need to log in
No.
What for? If the question is speed, then you can find it out.
You can send an empty request to the server, and then check the client's IP address for belonging to a pool of IP addresses of cellular operators, the pools are known.
var isWiFi = window.confirm('Вы через WiFi?');
Reinforced concrete working method :)
You probably want to know whether the user should download some large file or not - so ask him, let him decide. Maybe he has 4g and unlimited. Or maybe he sits in the "Coffee House" through the garbage Beeline Wi-Fi.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question