I recently asked a programmer to make my site mobile friendly. We set up a sub-domain and added <link rel=“canonical”> for duplicate info.
the site was then uploaded to a sub-domain and I was told to then enter the following script into my main site:
<script type=“text/javascript” src=“http://www.domainname.com/m/mobile-switcher.js”></script>
My questions is: is the above script telling all users to go to my mobile site first? I’ve seen other scripts that are placed into the main site and tells the browser that if the screen size is a certain width, the to redirect to the mobile site.
I haven’t a clue on scripting - any help or guidance please