Facebook engineer reveals HTML5 flaws

Scrolling, GPU and tooling issues scuppered wrapper apps

Facebook engineer reveals HTML5 flaws
The now-banished HTML5-based Facebook app for iOS. It was rubbish.

Facebook software engineer Tobie Langel, who's also the company's W3C AC representative, has posted online about the performance issues the company encountered while building for the mobile web. This follows Facebook CEO Mark Zuckerberg's recent statement that betting so heavily on HTML5 was "the biggest strategic mistake" that that company has made.

Langel outlined a number of key areas in which development for the mobile web fell short – at least as far as Facebook was concerned. He said that a "lack of tooling in mobile browsers makes it very difficult to dig down and find out what the real issues are", especially when related to memory complications Facebook often came up against, owing to the size of the service's content. "It's not uncommon for our application to exhaust the hardware capabilities of the device, causing crashes [and] it's difficult for us to understand exactly what's causing these issues," he added, hoping for better on-device or remote-access dev tools in the future.

Scrolling performance was also a big issue for Facebook, which Langel said was typically problematic on infinite scrolling feeds that would end up with large amounts of content. He noted there were technical problems – stuttering and GPU buffer exhaustion – but also said there were snags relating to how each device works: "Native momentum scrolling has a different feel across operating systems. [JavaScript] implementation [ends] up being tailored for one OS and feels wrong on other ones."

Additionally, Langel said the GPU is a "black-box with a clunky API to add things to it", and that he thinks we won't "get to a place where managing [the] GPU can be left strictly to the browser in a reasonable amount of time", along with arguing that standards require better touch-tracking support, smoother animations and improved caching. He also made plenty of suggestions regarding API development. Yet even given this rather high-profile negative experience regarding HTML5, developers aren't concerned about the technology's future nor its chances long-term versus native apps. "HTML5, or some derivation of it, will come out ahead in the end simply because having many competing UI language systems is counterproductive," argued Zurb partner Jonathan Smiley. "Devices are more and more quickly connected every day, and terminals that hold everything locally are finally starting to fade away. Apps won't be any different."

2 comments

Comment: 1

Funny, this is EXACTLY why we need WebGL on mobile. Hold on, it is coming!

Comment: 2

oldorange1
Today at 17:02
I shouldn't be trusted, of course... back in the mid 90's I suggested to a advertising client visiting our major newspaper who asked my opinion about it following a web presentation, that I could see the web being very useful for a techie and geek like myself, but not necessarily for the average joe. How wrong I was, then again, that web is not today's web.

So... From only personal preference I can say that I get very frustrated with Native Apps that I must download and update and learn, and sometimes pay for, and re-learn, and then search out how the app does it differently than the website or the mobile website does it, or my iPad app, or website on my iPhone or iPad or desktop does it, puts it, or doesn't put it, and then doesn't allow me to do desktop-mode on my iPhone or iPad....

Holy crap, enough already!
June issue on sale now!

The Week in Web Design

Sign up to our 'Week in Web Design' newsletter!

Hosting Directory
.net digital edition
Treat yourself to our geeky merchandise!
site stat collection