I would like to learn responsive web design, and I was poking around Barnes & Noble.com and Amazon.com and neither of those websites appear to be responsive.
Is that possible? Did I do something wrong when I re=sized my browser window?
It would be shocking to think that two major online book sellers wouldn’t use the more modern approach of responsive design.
I don’t see how Google cn consider those two websites to be mobile friendly because when I adjusted my browser window to a smaller size like you’d get on a smartphone, the websites did not adjust.
If you start with Chrome resized, and reload the page (even in incognito mode), Amazon.com still doesn’t look mobile friendly. But it is.
Like @John_Betong said, use the mobile friendly test to see what the site will really look like on a mobile device. Also, in Chrome, you can toggle between a mobile view of the site and the desktop view. Use “Toggle device toolbar” in the Chrome dev console.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0
The above value can be used Server side to guess the viewport type and include the relevant files.
The other responsive layout method is to use a common CSS and possibly JavaScript files for every possible viewport type - and there are now lots with the number increasing on a daily basis.
When I studied responsive design in the past, you coded your web page to work on some default system (e.g. desktop) and then you had media queries to make things adjust as various points. You did not design for every device, but rather made sure things were readable at various screen widths.
Has that changed?
And apparently Amazon’s website trying to be “smart” isn’t such a good idea, because if i am on my computer and need to resize the window for whatever reason, or if I have Javascript turned off, or I am doing development and just want to see how things “respond” at various screen sizes, then Amazon’s Javascript won’t let me do that. That is a bad idea!
I think a lot of these “big names” on the internet still use a separate “mobile version” of their site. To see that you would have to visit on an actual mobile, not an emulation.
I often see referals in Analytics from m.facebook.com which I think is the mobile sub-domain.
Also I think they would prefer users to use their App on mobile.
I would also go as far to say these big names are not (by an long way) the best place to pick up coding tips, their HTML is generally quite disgusting to my eyes. Unsemantic, invalid, bloated gobeldygook, a lesson in how not to do it.
I guess they are just big enough not to care.