title: how to check for mobile version of a website?
body: <p>I would like to check if mobile version exists for a specific website or not. To my understanding, we cannot be sure if every website has mobile version located at <a href="http://m.example.com/" rel="nofollow">http://m.example.com/</a> therefore I am testing through CURL() request. Here is how I am doing it:</p>
  
  <pre><code>* I send mobile browser headers in curl request, this returns contents of 
  the returning URL. 
  * If it has a mobile version, then it would return contents of a mobile version site.
  * I then check if the content includes @media keyword, if it exists then I assume it has a mobile version.
  </code></pre>
  
  <p>The problem is, if its css loads externally then I will have to further send CURL() requests to the CSS files as well, which will make it even more slower. Is there any specific solution to my problem or can I boost this process a bit more?</p>
  
  <p>Any help would be appreciated. Thanks. </p>