Friday, July 7, 2017

How to tell if a mobile page was designed specifically for mobile?

Leave a Comment

Is there a way to tell if a mobile page you've downloaded is just a desktop page modified with media queries, or is a separate page designed specifically for mobile? I'd like to go through a list of the "20 Best Mobile Pages" and see what percent were designed specially for mobile.

3 Answers

Answers 1

Let me express my understanding on your task: You want to check whether one webpage, e.g. https://www.google.com, is designed for both mobile device and desktop computer(it means the two types visit could cause server deliver different webpage), or just for mobile device or just for desktop. If my understanding is right, the following is my answer: You could change the "user agent" in your http request, then analyze whether you could get the same or different content from the same URL. About the "user agent", more explanation is here: https://www.thoughtco.com/detecting-hits-from-mobile-devices-3469093

After you get the contents from different "user agent" settings in your http requests, then if the mobile device's type "user agent" content is different from the desktop's type "user agent" content, then you could assume that URL page is specially designed for a mobile device.

But because there is no special international standard to tell the client whether the content is for mobile or for desktop computer, so it's your job to make this decision after you get the same HTML content from both mobile device "user agent" and desktop "user agent" settings.

Answers 2

Google has a test specifically for this problem, it has API using REST, it can be used with Go,Java, Javascript, PHP, Python and Ruby:

https://developers.google.com/webmaster-tools/search-console-api/

I hope this helps.

Answers 3

Go on the site on desktop, then use Chrome's inspect element to test a mobile sized browser. Then go on your phone and go to the site. If the results are different, then it was designed for mobile, if not then the website was just built to be responsive.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment