How to create a mobile website [infrastructure]

If I wanted to create a mobile friendly version of a relatively small website, it would be better to have a subdomain that redirects to a completely new url with separate markup and style, or it would be better to detect the user agent in the code and programmatically change to another mobile stylesheet, or is this the best infrastructure-based solution that I don’t notice.

Thank.

+3
source share
2 answers

If SEO is not a concern, using different stylesheets with the same HTML is much easier to maintain.

+1
source

. useragent, . , , if, , , .

tho, , , ... cookie, .

+3

Source: https://habr.com/ru/post/1742816/


All Articles