📜 ⬆️ ⬇️

Comparison of methods for creating mobile versions of sites

Not so long ago, the availability of an adaptive or mobile site became not a trend, but a real necessity - traffic from devices continues to grow, and users are already beginning to abandon large computers in favor of smartphones and tablets. For the creation of such sites now, basically, three methods are used: adaptive layout, development of a separate mobile version and RESS. Johan Johansson has published a comparison of these methods, the translation of which we present to your attention. Under the cut a lot of text and pictures.

It seems that the debate about the technologies of creating mobile sites in the near future will not subside. In these areas, for example, Google is committed to developing responsive web design , while Jacob Nielsen, a renowned usability consultant, advocates the creation of individual mobile sites .
The third option that is already becoming popular is when the web server generates the corresponding HTML and CSS depending on the device using the parameters obtained from the URL.

In this article we will look at each of these methods and give real examples.

The iPhone 4 with iOS 5.0 was used for testing.
')

Responsive Web Design


Responsive web design typically uses CSS3 Media Queries to customize the layout of a web page based on the size of the viewport. You can use the same HTML to display different web page layouts for desktops, tablets, mobile devices, TVs, etc.

Benefits


disadvantages



Examples:


Starbucks


image

The Starbucks site is a great example of the pros and cons of responsive web design. All their content is available on mobile devices, each page uses the same URL, there is no redirection.
Unfortunately, their website is hard to download (about 15 seconds on a 3G smartphone), and you need to scroll a lot to read the entire page.

Results :
Average load time: 14.99 seconds
Average page size: 1,193.88 KB
Number of HTTP requests: 142

World Wildlife Fund


image

The WWF website is a good example of responsive web design. Navigation is optimized for mobile tasks.
However, the download time on the 3G smartphone leaves much to be desired (it takes about 7 seconds). In addition, some internal pages (for example, their confirmation form) were not optimized for mobile devices and remained inconvenient for use on a mobile device.

Results :
Average load time: 6.91 seconds
Average page size: 885,97 KB
Number of HTTP requests: 72

The boston globe


image

The site of the Boston Globe - perhaps one of the best large-scale projects with responsive design. The site uses “rubber” images and optimizes JavaScript so that it does not affect performance on mobile devices.

Results:
Average load time: 5.55 seconds
Average page size: 605,27 KB
Number of HTTP requests: 87

Separate mobile site


To make the site convenient for mobile users, some webmasters create separate sites. The most common story is with redirecting mobile users to a special subdomain (for example, mobile.examplesite.com for examplesite.com).

Benefits:


Disadvantages:



Examples of dedicated mobile sites


Walmart

(mobile.walmart.com)
image
Walmart mobile site shows incredibly fast download time - just 1.35 seconds

Results:
Average load time: 1.35 seconds
Average page size: 272.29 KB
Number of HTTP requests: 45

Amazon

(www.amazon.com / GP / AW / h.html)
image
Like Walmart, Amazon’s mobile site pages load faster than adaptive scoring (2.25 seconds).
Strange, however, that not all pages on the site have mobile versions. For example, if you search on Google using a smartphone, many results will relate to the “big” version of the site without redirecting to the mobile version. In addition, if you access the mobile page from a desktop computer, you will not be redirected to the full version.

Results:
Average load time: 2.25 seconds
Average page size: 103.66 KB
Number of HTTP requests: 16

Bbc

(www.bbc.co.uk / mobile)
image
Mobile BBC website pages load faster than adaptive (3.40 seconds), but almost half of this time is redirected by users (1.65 seconds).
Unlike the Amazon site, if you try to access a mobile page from a desktop computer, you will automatically be redirected back to the “large” version of the site.

Results:
Average load time: 3.40 seconds
Average page size: 56,04 KB
Number of HTTP requests: 22

RESS: Displaying different HTML and CSS on the same URL


This mobile site creation method uses server-side programming to create CSS and HTML for various devices. That is, mobile users receive one set of code, while desktop users receive a different set of code.

This is done to improve the efficiency of the site and works best in conjunction with adaptive layout.
This method was called responsive web design + server-side software (RESS).
When using this method, it is important that the type of Vary HTTP headers is included (for details, see the Google Help, a guide to creating optimized websites), so that search robots will visit both desktop and mobile versions.

Benefits:


Disadvantages:



RESS examples


CNN


image

The mobile version uses a combination of HTML and CSS optimized for mobile PCs, while the desktop version uses significantly more HTTP requests and JavaScript.
Navigation is also specially designed specifically for mobile tasks.

Results:
Average load time: 3.46 seconds
Average page size: 163,12 KB
Number of HTTP requests: 28

eHow


image
As in CNN, HTML and CSS are customized for the mobile version of eHow. Top-level navigation is the same for both sites, focusing on search and seven main headings.

Results:
Average load time: 6.15 seconds
Average page size: 188.95 KB
Number of HTTP requests: 31

Slideshare


image
Mobile and desktop versions of SlideShare are completely different. The mobile version uses responsive web design, while the desktop version does not. Each site uses different HTML and CSS. For example, JavaScript is much less in the mobile version. Each site also uses different navigation structures.

Results:
Average load time: 6.15 seconds
Average page size: 188.95 KB
Number of HTTP requests: 31

Summary


In theory, responsive web design is the best solution. But in practice, most of these sites are implemented incorrectly and lead to an increase in download time.
My tests show that the best load times are for mobile sites, but there are significant drawbacks to this implementation of the task.
In my opinion, it is best to use a combination of responsive web design and RESS. In this case, we get all the advantages of “rubber layout” and solve two big problems: the use of multiple files and slow loading.



Dmitry Vasiliev, NetCat : “For professionals - designers, designers, layout designers - an adaptive site is a much more interesting task than the traditional bundle of“ widescreen-mobile ”sites. But the disadvantages of adaptive sites in the article are described in some detail. I would also add the difficulty of preparing content after the launch of the site. Imagine: the secretary is assigned the task in the section “About the Company” to place a large photo of the director and a table with important milestones in the history of development. Of course, she will not be able to prepare responsive content, even if she wants. The correct approach is to transfer the task to a professional, but in doing so we increase the cost of owning the site for the user.

But there are sites that are objectively better initially to make adaptive. For example, these are corporate business cards or other sites without complex functionality. And we believe that the developer should have a choice. Therefore, a site running NetCat can operate in one of three modes: a regular site, a mobile version of a regular site, and an adaptive site (and all system modules also support these modes).

As for RESS, this is an interesting approach, but it does not remove all the problems associated with adaptive layout. In addition, it is often better for the smartphone user to offer a choice, to watch a regular website or a mobile one, because the web usage scenarios on the phones may be different. For example, I often go to the poster from the phone. If I want to choose a movie or cafe, I go to the regular version of the site, if I look at where the movie I want goes, or find out some address - on the mobile. And I am pleased that the site does not decide for me how to view content, but gives a choice.

Summarizing: I believe that for most tasks, the “regular site plus mobile version” approach is the path of least resistance, the benefit of modern CMS is to dramatically minimize the cost of creating a second site. But there will not be a definite victory of one of the competing approaches in the near future. ”

What methods do you use to create mobile sites? Share your thoughts on this topic in the comments or tick the option of the survey.

Source: https://habr.com/ru/post/170807/


All Articles