Skip to Content

Apple's 'AdLib' Framework Brings Native-Like Functionality to iPad Web Pages


Demonstration of iPad User Guide utilizing 'AdLib' framework

Done21 reports on the curious discovery of a new Web-based framework used in the iPad that allows web pages to behave in ways much more akin to native applications than previously observed. The framework, dubbed 'AdLib' by the report's author after the name of the file containing the code, was first noticed in action when navigating to Apple's iPad User Guide using the iPad's mobile version of Safari. It allows the user guide, which is simply a web page, to be offered in a split-pane view with scrollbars and with a native app-like feel.

What's particularly interesting is that it does something that shouldn't really be possible in Mobile Webkit: It includes scrolling panes that can be manipulated with a single finger, complete with the signature iPhone OS "scroll bars" and elastic transitions. If you have ever worked with Safari on the iPhone, you know that having scrolling boxes of content is sort of possible, but requires a special two-finger gesture to scroll.

Curiosity got the best of me, so I loaded the page in Safari on my laptop (and changed Safari's user agent to mimic the iPad) and got to work with the developer tools. After extracting the JavaScript and de-minifying it, my suspicions were confirmed. Apple was manually reading the touch events, calculating the inertia of the scrolling, and manually drawing the scroll bars. It was incredible that it worked so smoothly in the browser.

The framework, which weighs in at about 4,300 lines of code, permits Mobile Safari to display the native-like user guide simply using HTML, CSS, JavaScript, the basic web technologies supported by the iPhone and iPad. It appears similar in some respects to the PastryKit framework described by John Gruber last December, although AdLib appears to be a more advanced version that incorporates iPad-specific references.

It remains to be seen whether Apple will release the custom API for use by third-developers, but despite an absence of documentation, the report notes that the framework is "extremely well thought out and complete" and could be of significant utility to developers.

Update: For those interested in the actual code, a commented version has been discovered on Apple's developer site.

Popular Stories

MacBook Neo 2 on Yellow Feature

Apple Reportedly Plans to Release These Products in February or March

Sunday November 22, 2026 7:32 am PST by
Apple plans to unveil an iPhone 18e, iPhone 18, updated entry-level iPad, and new MacBook Neo and MacBook Air models around February or March next year, according to the latest word from Bloomberg's Mark Gurman. In his Power On newsletter today, Gurman said Apple has some additional products planned for the first half of 2027, including the iPhone Air 2 and new iPad Air and iPad Pro models,...
1password deal blue

1Password Security Breach: What Was Accessed and What Wasn't

Wednesday November 25, 2026 1:09 pm PST by
Popular password management app 1Password today said it experienced a security breach earlier this month. 1Password says some customer names and email addresses were accessed, but no customer vault contents were compromised. On November 19, 1Password saw indications that an employee's GitHub account had been breached and began investigating. The company says the breached GitHub account was...
ipad pro prime

Apple Has iPads Running macOS Internally, Says Gurman

Wednesday November 25, 2026 4:55 am PST by
Apple has iPads running macOS internally and has had them "for some time," according to Bloomberg's Mark Gurman, although he says no work is currently being done to bring the Mac operating system to iPads. Speaking on his latest Power On podcast, Gurman said there is "no work being done to consumerize macOS on the iPad." Rather, Apple will continue to bring Mac features and apps like Final Cut ...
Latest Stories
Apple's Official 2026 Black Friday Offer Starts Rolling Out
Apple's Official 2026 Black Friday Offer Starts Rolling Out
2 hours ago
Halide Adds Fill Light Feature for iPhone Duo
Halide Adds Fill Light Feature for iPhone Duo
2 hours ago
MacBook Air Black Friday Deals Now Live With Massive $399 Savings
MacBook Air Black Friday Deals Now Live With Massive $399 Savings
3 hours ago
Amazon Discounts All MacBook Neo Models by $99 for Black Friday
Amazon Discounts All MacBook Neo Models by $99 for Black Friday
3 hours ago
Kodak Launches Unique AirTag Rival With E-Ink Display
Kodak Launches Unique AirTag Rival With E-Ink Display
4 hours ago
Here's Why the Apple Store is Going Down
Here's Why the Apple Store is Going Down
4 hours ago
Apple Still Working on Giant Foldable iPad That Could Cost $5,000
Apple Still Working on Giant Foldable iPad That Could Cost $5,000
5 hours ago
iPhones Dominate China's Weak Singles' Day Smartphone Sales
iPhones Dominate China's Weak Singles' Day Smartphone Sales
5 hours ago
iPhone 20 Pro Could Feature Ceramic in Limited-Edition Model
iPhone 20 Pro Could Feature Ceramic in Limited-Edition Model
6 hours ago
Apple Faces Korean Regulator Review Over iPhone 16 AI Advertising
Apple Faces Korean Regulator Review Over iPhone 16 AI Advertising
7 hours ago
Apple Watch Ultra 4 Hits New Best-Ever Price of $649.99 for Black Friday
Apple Watch Ultra 4 Hits New Best-Ever Price of $649.99 for Black Friday
7 hours ago
New Apple Store Opening in India, Download the Special Wallpaper Now
New Apple Store Opening in India, Download the Special Wallpaper Now
14 hours ago
Redesigned OLED MacBook Air Could Launch in 2027 or 2028
Redesigned OLED MacBook Air Could Launch in 2027 or 2028
19 hours ago
AirPods Pro 3 for $149 is One of The Best Black Friday Deals This Year
AirPods Pro 3 for $149 is One of The Best Black Friday Deals This Year
19 hours ago
1Password Security Breach: What Was Accessed and What Wasn't
1Password Security Breach: What Was Accessed and What Wasn't
21 hours ago
WhatsApp Finally Adds Scheduled Messages
WhatsApp Finally Adds Scheduled Messages
21 hours ago
Get Apple's Cheapest iPad for $379 During Amazon's Black Friday Sale
Get Apple's Cheapest iPad for $379 During Amazon's Black Friday Sale
22 hours ago
Rumor: iOS 28 to Revamp Notifications
Rumor: iOS 28 to Revamp Notifications
22 hours ago
iPhone 18 Pro Max Battery Exhausts a Toy Cyclops in New Apple Ad
iPhone 18 Pro Max Battery Exhausts a Toy Cyclops in New Apple Ad
1 day ago
$799 Smart Glasses Promise Vision Pro-Style Controls in a 45g Frame
$799 Smart Glasses Promise Vision Pro-Style Controls in a 45g Frame
1 day ago
How To Get an iPhone Duo or iPhone 18 Pro at No Cost Through T-Mobile for Black Friday
How To Get an iPhone Duo or iPhone 18 Pro at No Cost Through T-Mobile for Black Friday
1 day ago
Apple Has an iPhone Notifications Problem
Apple Has an iPhone Notifications Problem
1 day ago
Amazon Sweetens Black Friday Deals on PROLED MacBook Pro
Amazon Sweetens Black Friday Deals on PROLED MacBook Pro
1 day ago
Apple Has iPads Running macOS Internally, Says Gurman
Apple Has iPads Running macOS Internally, Says Gurman
1 day ago
Apple Is Far From Done With 2026: Here's What's Still Coming
Apple Is Far From Done With 2026: Here's What's Still Coming
1 day ago
Threads App for iPad Now Available
Threads App for iPad Now Available
1 day ago
Claude Now Lets You Install Artifacts as Desktop Apps
Claude Now Lets You Install Artifacts as Desktop Apps
1 day ago
Tidal Bans AI Music, While Apple Music Sticks to Labels
Tidal Bans AI Music, While Apple Music Sticks to Labels
2 days ago
Add Holiday Lights and Snow to Your Mac With Festivitas
Add Holiday Lights and Snow to Your Mac With Festivitas
2 days ago
Meta's Muse AI Agent Comes to Instagram DMs
Meta's Muse AI Agent Comes to Instagram DMs
2 days ago