Good day. Faced a problem. The desktop and mobile versions of the site are completely different. Much to shovel with css and js is not particularly desirable. Found information about the Mobile Detect class, which determines the mobile device or not. I checked on a pair of available devices - everything adequately determines. The question is ... whether there are pitfalls and determines whether with 100% of cases. I would not like to re-do the layout after a couple of months. Thanks in advance for the answers.
- I suppose that the author does not want to do an adaptive layout, but simply sip a couple of options for different devices. What is not good or easier. 21st century in the yard. Get away from server rendering. - Ninazu
|
1 answer
determines whether with 100% of cases
not. Accuracy 80-95%
- that is, it is better not to risk and write mountain js + css? - Boris Runs
- @BerezhimovBoris and where does the mountain
js и cssandMobile Detect? It only detects devices, and does not automatically remake your styles and scripts for devices - Alexey Shimansky - @ Alexey Shimansky, the question is whether to use it ... if it is determined correctly, I will render one html on the server for the phone. If the detector does not use it, then you need to write a lot of css and js that would be like on mockups ... - Boris Runs
- @ Run Boris html generate. but it will still need to write all the other styles and maybe some .js. Nothing will change in the condition, sobssn - Alexey Shimansky
- @ Alexey Shimansky, you didn’t understand me, simeyu because if you don’t use this class, robots with css and js will be many times more - Boris Runs
|