PEBKAC

« Back to blog

AdLib: Apple’s Secret Weapon For Making Better Web Apps For The iPad

Back in December of last year, John Gruber noticed that the on-handset iPhone user guide exhibited a bunch of behaviors that web apps normally couldn’t. Tool bars locked in place, clicks felt natural, and scrolling elements seem to emulate those found in native apps. He did a bit of tinkering, discovering that this was all made possible by a custom Javascript framework built by Apple called “PastryKit”. This iPad sorcery appears to be an extension of that.

The guys who brought it to our attention, Done21, are tentatively referring to this unannounced, not-quite-public framework as “AdLib”, after the file that contained it all: AdLib-ug-ipad.js. This name is by no means official – it’s just the best thing we’ve got, so far.

Coming in at just shy of 45,000 lines of code, the entire purpose of AdLib appears to be to bring native app-esque functionality to Web Apps, often counteracting the default behaviors that make Safari play nice with the rest of the web.

Posted April 7, 2010