Answer the question
In order to leave comments, you need to log in
Why turn off java script in the browser and how many do it?
More and more often lately I hear something like: "If a visitor to your site has JS turned off, then he will not see half of it." Well, it’s considered good form among developers to write their own js / css so that even if scripts are disabled, the user can somehow continue to use the site.
I am confused. As a person with extensive experience in web development and just in computers, it would not occur to me to cut down JS, half of the sites will turn into a pumpkin. And the typical average user doesn't even know what JS is.
Question: how many people are cutting down JS and how relevant is this question?
Answer the question
In order to leave comments, you need to log in
People who turn off JS are within the margin of error. They are used to the fact that 95% of the Internet turns into a pumpkin. You can safely hit them.
You can collect statistics specifically for visitors to your resource, the principle is as follows:
a hidden iframe containing a page with an html redirect (via the meta tag) is hung on the page a few seconds after loading, the redirect should lead to something like /stats?js=off
immediately after iframe, a script is hung that removes this iframe from the page and sends an ajax request /stats?js=on
On the server, we store all this in a database with additional data (ip, user-agent, etc.), you can also send cookies to the browser that this has already been checked You don’t have to check the browser again (although paranoid people can disable cookies, so you can’t trust cookies alone)
. Having collected statistics in this way for a month or two, you can already draw conclusions about% of visitors without js
UPD:two-way templating (not only on the client, but also on the server, for the first request) will not only partially solve the problem of disabled js, but also speed up page initialization and increase search engine rankings
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question