Like nearly everyone here I try to make the websites I create a user friendly as possible. This includes any problems that might arise with accessibility.
I use ARIA in my HTML, I pick colors with the right amount of contrast, I use popular screen reader addons to see if my website functions correctly with those etc.
However, I have yet to find a way to be ahead of the problem. Is there any way, to know what or which disability a user might have when they visit the website.
My question is as followed: Is there any type of code/request that defines a certain accessibility problem when the user sends the first request to the server?
For instance, can a browser send additional information to the server that says 'this user is blind/has limited vision' and that the server responds with 'Ok, I will send you a different version of the webpage that is designed for people with limited vision'.
This different version can then be more designed on audio cues instead of visual cues when using interactive elements.
Update: I decided not to go through with enabling automatic detection, while it might help the world wide web should be an open place where you can interact without being marked by a disability brand.
The post that made me change my mind can be found here: https://www.powermapper.com/blog/accessibility-analytics/ if anyone would like to read it.