The following question is asking about two ways to solve a problem:
Which approach is more reliable to detect a mobile browser:
a) UA sniffing
b) Jquery´s width()
It seems to me a lot of users here mindlessly vote to close such questions without reading them.
Do you think this question is not answerable from someone with experience? Or do you think it's open ended like "should i buy mac or oc lol". It looks like this question is suitable for Q&A. Or am I wrong?
This question is like if I were to ask what performs better for writing text,
html(). Rephrasing it in "How do i write text in JS with high performance" might lead to answers not related to the true question.