📜 ⬆️ ⬇️

Update Opera Mini servers: Flexbox, ES5, HTML5 parser



We have updated Opera Mini servers to the new version of our Presto engine. This means that the layouts on the Flexbox and the units of measure rem will work as you expected.

As you probably already know, Opera Mini renders pages on Opera servers, and they then in a highly compressed format are sent back to clients on devices. This means that all users will immediately see the pages rendered by the updated Mini servers - they will not need to update the program. Automatic update for 260 million users in just one weekend. Wow.
')

What's new


HTML5 parser

Mini servers now use Ragnarök, our own implementation of the algorithm for the HTML5 parser . This algorithm is like HTML Ninja: very powerful, but always acts imperceptibly. When we first introduced it to Opera for computers, we found out that 20% of the problems with site compatibility disappeared. So this seemingly inconspicuous improvement should increase the compatibility of sites.

New field types from HTML5

Our servers now support HTML5 field types ( tel , date , number , etc.). We plan to update the clients themselves later to make these fields work in supported OS. Until then, they will be replaced by <input type="text"> , as this specification requires.

CSS Flexbox

Flexbox (or CSS Flexible Box Model , if officially) is a new way to create flexible layouts in the browser, responsive enough for the pages to adapt well even without media expressions. Blocks are stretched or compressed to occupy free space, divide the space equally, creating layouts-grids for arbitrary widths. Blocks with content can be visually reversed without touching the HTML source code - for example, navigation to the left of the content on the big screen (which is in the source code before it) can be moved after the content on narrow screens.

More details:



rem units

The unit of measurement of rem is equal to the calculated font-size value of the root element. If you use this unit in your code, changing the font-size for the <html> element will change all other properties expressed in rem .

ECMAScript 5

The following properties are now supported:



This makes our support for ES5 complete.

What works in Opera Mini?


Until now, Opera Presto has worked on Opera Mini clusters, similar to Opera 11 for computers. Now it has been upgraded to a version similar to Opera 12 for computers, with some disabled features, mainly related to architectural features, for example:



Worth keeping in mind




Testing


We tested everything very carefully, but if you want to see how your pages look, there are several ways to do this.

Download Opera Mini

Of course, you can install Opera Mini directly to your device. Direct your pocket friend to m.opera.com and download Opera Mini for Android, iOS, Windows Phone or even for the simplest mobile - Opera Mini works on more than 3000 different devices.

If you are using a version for iOS, do not forget to switch it to Mini mode in order to send traffic through Opera Mini servers. Click on the red "O" and select "Opera Mini". Opera Mini for iOS also compresses video. Read more about Opera Mini for iOS .

Testing on the computer

For development and testing, it may be useful to install Opera Mini on your computer. To do this, you need Java and MicroEmulator, in which you can run an instance of Opera Mini for J2ME phones. The guide " Installing Opera Mini on Your Computer " has all the necessary information.

You can also install Opera Mini on your Chromebook . No, you heard right.

Testing local sites with ngrok



Many developers use ngrok to securely open local servers to the global network. As the site says: “ngrok creates a tunnel from the public Internet subdomain.ngrok.com subdomain.ngrok.com to port on your local computer. You can share this link with anyone, so that he can look at your work - no deployment is needed. ” You simply direct Opera Mini to subdomain.ngrok.com to test your site. The ngrok code is open, the project also offers a paid service.

In conclusion


After months of planning and testing, we are infinitely happy to share the magic of ES5, HTML5 parser, Flexbox, and the triumph of the rem unit with more than a quarter of a billion users. In the meantime, we continue to work to make Opera Mini faster and more accessible to even more users — to make sure everyone has Internet access.

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


All Articles