How can you tell if a mobile page has been specifically designed for mobile devices?

Is there a way to find out if a mobile page is only loaded on a desktop modified by media queries, or a separate page specifically designed for mobile devices? I'd like to browse the Top 20 Mobile Pages list and see what percentages have been designed specifically for mobile.

+3


source to share


3 answers


Let me express my understanding of your task: You want to check if one web page is, for example. https://www.google.com , is for both a mobile device and a desktop computer (this means that two types of visit can cause the server to provide a different web page) or just for a mobile device or just for desktop.

If my understanding is correct, then my answer is:

You can change the "user agent" in your HTTP request and then analyze if you can get the same or different content from the same URL. More about the "user agent" is explained here: https://www.thoughtco.com/detecting-hits-from-mobile-devices-3469093



After you get the content from the different "user agent" settings in your http requests, then if the content of the mobile device type "user agent" is different from the content type "user agent" desktop, you can assume that this page is the URL specially designed for mobile device.

But since there is no specific international standard to tell the client whether the content is mobile or desktop, so your job is to make that decision after you receive the same HTML content from both the user agent mobile device and from the "user agent" setting on the desktop.

+2


source


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

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



Hope this helps.

+1


source


Go to the site on your desktop, then use the Chrome validator to test a mobile-sized browser. Then go to your phone and visit the site. If the results differ from each other then it was designed for mobile devices, if not then the website was just built to be responsive.

0


source







All Articles