Is the below code problematic in respect to SEO and Google?
The reason why I want to opt for this type of code is to of course avoid duplicate content in respect to both HTML and code maintenance. The code for the mobile version of the website will be "extracted" from the desktop version, injected in placeholders.
This will allow me to keep the desktop version untouched, add a number of placeholders for the mobile version and populate them in the below way.
Of course I might as well decide to have two different versions of the page, one for desktop and one for mobile with a big advantage being that mobile users will not have to download my big CSS/JS files used by desktop, they will download a much, much lighter version of my pages.
But I have server restrictions, such as that I cannot implement user-agent redirections on the server side. So I need some help:
Is there any difference between mobile.mydomain.com compared to mydomain.com/mobile, again, in respect to SEO? Due to server restrictions, I'm afraid I can only opt for the latter.