What Opera Mini on the iPhone means for developers

, ,

After 20 days of deliberation, Apple has approved Opera Mini for the iPhone and iPod Touch meaning it's now available for free from the iTunes app store. Great news for users but also important for developers.

  • For users, it means more choice when browsing the web on these devices and, because of the compression technology used, more freedom to surf the web when connections are slow or expensive.
  • For developers, it means mobile web usage increases further and catering for these users becomes even more important.

Opera Mini is unique in that it offers a great browser experience combined with server-side compression. On the technical side, it uses a server-based version of our Presto 2.4 rendering engine and has some support for HTML5 and CSS3, as you can see in this summary of Opera's standards support. It also contains our Small Screen Rendering technology, if the user chooses to enable it.

While this means that mobile users can freely enjoy the desktop versions of their favourite websites, there may be times when you wish to optimize your site for more efficient browsing on a small screen. It's now widely accepted that browser-sniffing is not the best way of providing tailored content and, thankfully, better ways to look after users of different devices have emerged. Our recommended approach, and one that is gaining traction among developers and browser makers, is CSS3 Media Queries. In effect they are conditional statements for CSS, enabling you to serve specific styles to certain types of devices, for example the following can be used for detecting small screen devices up to and including the iPhone/iPod Touch.

For in-line styles:
@media screen and (max-device-width: 320px) {...}

For external style sheets:
<link rel="stylesheet" type="text/css" href="mobile.css" media="screen and (max-device-width: 320px)">

Beyond design optimisation, we also recommend testing for browser capabilities rather than for a specific browser name or version. Having said that, in case you need it, the Opera Mini 5 for iPhone / iPod Touch User Agent string is as follows [updated on 16-04-2010]:
Opera/9.80 (iPhone; Opera Mini/5.0.0176/812; U; en) Presto/2.4.15

Please note that the User Agent is liable to change, as all User Agent strings are, however "Opera Mini" and the Presto version format will not. Finally, the x-operamini-phone HTTP header returned is:
Apple # iPhone

Further resources:


Making your site mobile-friendly – RIT++ 2010, MoscowOpera 10.52 final for Mac is out!

Comments

Unregistered user Tuesday, April 13, 2010 1:02:25 PM

Anonym writes: Hello, I am both a developer and a user of opera, both mobile and standard version. I'm sorry to post that here but I really feel the need to give some feedback on the iphone version I just tested, and unfortunately I don't know where else to do so. Mostly, the experience is enjoyable but lacks one major feature (hence this post, because I think you can correct this in future updates): iphone-safari users have come to know as the "double tap zoom" and "pinch". Test scenario: a page contains a picture much wider than the iphone view port. With opera, you can either fully zoom in, or fully zoom out. It would be really nice if you could make it so that double tapping on the picture would try to fit it to the viewport (like safari). This feature would also imply the pinch to zoom further. I knoy, if this exists in safari, why bother with opera? Well, I have a personal preference for opera's UI and speed, so I think it is a shame that you nailed everything wonderfully on the spot, but still forgot such paramount features like this "resize picture to view port" thing. I'm writing this because I trust you for pushing even further and implement those features in a later update. Regards,

Haavardhaavard Tuesday, April 13, 2010 2:46:04 PM

Please post feedback for the iPhone version of Opera Mini here, as otherwise the Opera Mini team may not even see it:

http://my.opera.com/community/forums/topic.dml?id=521381

Daniel Davistagawa Wednesday, April 14, 2010 7:45:14 AM

Thanks for posting, Anon.

The double-tap feature request has been raised by others as well.
I'm not sure what will be fixed or added to future versions and obviously it will then have to go through the approval process again so we can't predict dates either. While it's not possible to keep everybody happy, the Opera developers do take into account user feedback like yours and that raised in the forums.

Thanks again,
Daniel

Charles SchlossChas4 Friday, April 16, 2010 3:29:20 PM

up

Robin Diekermautz001 Saturday, April 17, 2010 8:22:49 PM

Would be really nice if user Agent can be changed.

Charles SchlossChas4 Sunday, April 18, 2010 3:27:20 AM

Originally posted by mautz001:

Would be really nice if user Agent can be changed.


I was thinking the same thing maybe add an option in opera:config to use the old string if you wanted to get to a full site

Robin Diekermautz001 Monday, April 19, 2010 1:41:33 PM

Yeah thats what I mean or To switch between multiple agents like in iCabMobile

Write a comment

New comments have been disabled for this post.