Opera Mini Developer Tips

Tiffany B. Brown, Opera Software (@webinista)

LA BarCamp8

April 30, 2011 (use the space bar or scroll with your mouse)

What is Opera Mini?

Opera Mobile is a standard web browser.

How does it work?

phone-proxy server-internet

Proxy server does what?

It’s where the magic happens. Client just displays server rendering.

How JavaScript works in Opera Mini

Scripts run until they complete or until they are paused by the server — whichever comes first.

When limit is reached: Scripts are paused. Page is returned in its current state.

How JavaScript works in Opera Mini (Part 2)

How JavaScript works in Opera Mini (Part 3)

DOM Changes require a trip to the server.

var p = document.createElement('p');
p.innerHTML = 'HUZZAH!';
button.onclick = function(){ document.body.appendChild(p); }

CSS Support

Presto is Opera's browser engine.

Puts Mini on par with Opera Desktop 10 support for CSS and HTML — strong CSS and HTML5 support (with caveats)

Ecryption and SSL Support

Comes down to this: do you trust Opera to be your intermediary?

No support for …

Remember, this was designed for dumb phones with low power and storage on high-latency (slow) networks.