Answer the question
In order to leave comments, you need to log in
What can affect the work of javascript in android or what can happen on the network personally for one device?
So, the situation is this, already asked the question .
I think that the problem is outside the code, it's something in the depths of the android, or in the chain of network connections to the server.
So,
1. The whole js script falls off if you have a line with window.location.href in it
2. It falls off ONLY on my smartphone, in ANY browsers
3. As it turned out, there is nothing system in android that would be responsible for the javascript of absolutely all browsers .
4. If I use the phone's Internet to open a site from a PC - everything works, any emulators from a PC work. Other android devices in the family work.
5. There are no scripts that pull another jquery, there is nothing to conflict with. I even deleted potentially problematic ones, but the situation remained.
Let's delve into the possible problems:
1. There are no diseases and addictions, because the browser gives an error, and I washed my eyes and even dripped eye drops.
2. Substitution of all browsers in general, which can only be - is such an extremely unlikely thing that we also rule it out
. What remains the most likely?
Substitution of the jquery library somewhere in the chain of connections to the server, starting from the provider, ending with the cloudflare cdn.
At the same time, the following is interesting:
If I take the script code directly, then everything is fine there, diff tabs in sublime does not find the difference. Md5sum are different, but I don’t see any differences affecting diff in the terminal (it shows a line that is a comment).
Suppose the script is replaced only if I do not contact directly. Those. look at the script code - to the correct one, load the page using the script - to the wrong one.
It looks logical. But this should happen or only happens for my device.
How can an ISP, enforcers or reptilians with cloudflare know that I'm on my smartphone at the moment?
Screen resolution disappears, because emulators, for example, work. Yes, and the site, as it were, without someone else's code, and this is determined only by third-party code (screen resolution). Let's say they see that from a smartphone using css media query, but the emulators work the same, which pull the same files. user agent? But ALL BROWSERS from the phone do not work, and there the user agent is different.
Those. this still does not explain the problem, unless you tell me a way how they can find out that the traffic comes from the smartphone (the PC uses the Internet of the same smartphone and everything works fine)
But, most likely, I have already climbed very deep into the reasoning.
And what then can be the most logical in this case?
In this question, I just want to see the most logical reasoning that you can check and say for sure does not work because this and that and this is 100% clear. I would like to see the simplest reason, but even an unlikely one that can be checked and confirmed the version - I will accept.
PS There have already been problems with work, interference in the middle, so this should be taken without skepticism.
If it's so difficult for you to perceive, then let's consider the question a philosophical discussion, nevertheless, I need answers.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question