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.
If SEO is not a concern, using different stylesheets with the same HTML is much easier to maintain.
. useragent, . , , if, , , .
tho, , , ... cookie, .
Source: https://habr.com/ru/post/1742816/More articles:getSelection on DIV contentEditable - javascriptTag injection using master data on iPhone - objective-cDisplay popup in new Facebook JavaScript SDK - javascriptoracle select query - pointer to multiple columns - oracleProgramming a Windows Cluster Resource Resource DLL Using Delphi - delphiCan I put text on top of an image with a button? - javaАвтоматический указатель для беззнакового массива char? - c++Hibernate - managing insert and update queries - javaHow to select an element from a JavaScript array when I only know the value for one of the properties of the element? - javascriptUndefined jQuery Autocomplete Results - jqueryAll Articles