Apple's 'AdLib' Framework Brings Native-Like Functionality to iPad Web Pages - MacRumors
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

apple pro tell logo

Apple Launching Five New Products This Friday

Monday November 2, 2026 1:22 am PST by
Apple is releasing five new products this Friday, November 6, following pre-orders that opened last week, including its first touchscreen MacBook Pro models. The following new products will be available from Friday: iPad mini with OLED display and A20 Pro chip iMac with M6 chip 14-inch MacBook Pro with M6 chip 14-inch MacBook Pro with OLED touchscreen 16-inch MacBook Pro with OLED...
Apple Logo Gradient 16x9 1

Apple Isn't Done With 2026: Here's What's Still Coming

Monday November 2, 2026 7:27 am PST by
Apple's busiest season isn't over yet. Far from it. With two hardware launch dates still to come in November, plus software updates and new smart home accessories running into December, there's more on the way from Apple before the end of 2026, so be sure to stick around. Below, we've rounded up what's still coming, along with one date in particular that's worth watching if you're a holiday...
Apple Store Logo

Apple Store in UK Permanently Closing Later This Month

Tuesday November 3, 2026 7:34 am PST by
Apple today announced that its Festival Place store in Basingstoke, England will be permanently closing on Saturday, November 21. Apple Festival Place Apple had already announced that the store would be closing in November, but it had not provided the public with a specific date until now. Apple's store inside the Festival Place shopping center opened in 2011, so it had a 15-year run....
Latest Stories
HomeView Code Suggests Future Support for AI Chatbot Apps, Anti-Spoofing Protection
HomeView Code Suggests Future Support for AI Chatbot Apps, Anti-Spoofing Protection
36 minutes ago
Got an iPhone Duo on Launch Day? Tomorrow Could Be Your Last Chance to Return It
Got an iPhone Duo on Launch Day? Tomorrow Could Be Your Last Chance to Return It
2 hours ago
Apple Launching Five New Products Tomorrow
Apple Launching Five New Products Tomorrow
3 hours ago
Apple Releases Safari Technology Preview 256 With Bug Fixes and Performance Improvements
Apple Releases Safari Technology Preview 256 With Bug Fixes and Performance Improvements
12 hours ago
Apps Can Now Try to Stop You From Canceling Subscriptions
Apps Can Now Try to Stop You From Canceling Subscriptions
12 hours ago
'Super Mario Odyssey' Can Now Run on Apple TV Thanks to AI
'Super Mario Odyssey' Can Now Run on Apple TV Thanks to AI
13 hours ago
How 'Resident Evil' Director Zach Cregger Uses His iPhone to Make Movies
How 'Resident Evil' Director Zach Cregger Uses His iPhone to Make Movies
14 hours ago
HomePod Mini 2's Amount of RAM Confirmed
HomePod Mini 2's Amount of RAM Confirmed
14 hours ago
Apple TV's '12 Days of Snoopy' Special Arrives November 13
Apple TV's '12 Days of Snoopy' Special Arrives November 13
15 hours ago
Apple is Putting Employees on an AI Budget
Apple is Putting Employees on an AI Budget
16 hours ago
Apple Releases Xcode 27.3 Beta With Three New Features
Apple Releases Xcode 27.3 Beta With Three New Features
17 hours ago
Apple Will Check Public iCloud Links for Harmful Content Starting in iOS 27.3
Apple Will Check Public iCloud Links for Harmful Content Starting in iOS 27.3
17 hours ago
macOS 27.3 Brings Live Activities to Macs Without Dynamic Island
macOS 27.3 Brings Live Activities to Macs Without Dynamic Island
19 hours ago
Apple TV Reportedly Planning 'Silo' Spinoff
Apple TV Reportedly Planning 'Silo' Spinoff
19 hours ago
Is It Worth Buying a Titanium Apple Watch?
Is It Worth Buying a Titanium Apple Watch?
20 hours ago
macOS 27.3 Includes an Important Security Fix
macOS 27.3 Includes an Important Security Fix
20 hours ago
Massive Sale Hits Apple Watch Ultra 3 With Record Low $250 Discounts
Massive Sale Hits Apple Watch Ultra 3 With Record Low $250 Discounts
21 hours ago
Does HomePod Mini 2 Have Improved Sound? Here's What Reviews Say
Does HomePod Mini 2 Have Improved Sound? Here's What Reviews Say
21 hours ago
macOS 27.3 Makes Markdown Files Easier to Read
macOS 27.3 Makes Markdown Files Easier to Read
22 hours ago
HomeView Pre-Order Returns to $289.99 on Amazon
HomeView Pre-Order Returns to $289.99 on Amazon
23 hours ago
Apple May Phase Out Non-Touch High-End MacBook Pros
Apple May Phase Out Non-Touch High-End MacBook Pros
23 hours ago
Apple's Insider Trading Policy Now Covers Prediction Markets
Apple's Insider Trading Policy Now Covers Prediction Markets
1 day ago
'Stick' Season 2 Premieres Today on Apple TV
'Stick' Season 2 Premieres Today on Apple TV
1 day ago
iPhone 18e Rumored to Focus on Chip Upgrade With Few Major Changes
iPhone 18e Rumored to Focus on Chip Upgrade With Few Major Changes
1 day ago
Google Maps Updated to Fully Support iPhone Duo Displays
Google Maps Updated to Fully Support iPhone Duo Displays
1 day ago
Everything New in the iOS 27.3 Beta
Everything New in the iOS 27.3 Beta
1 day ago
Apple Music's New Selfie Sing Feature Lets You Record Karaoke Videos
Apple Music's New Selfie Sing Feature Lets You Record Karaoke Videos
2 days ago
iPhone Jailbreak Gets Past Lockdown Mode and Survives an Update
iPhone Jailbreak Gets Past Lockdown Mode and Survives an Update
2 days ago
iPadOS 27.3 Expands Siri Mode to Camera App
iPadOS 27.3 Expands Siri Mode to Camera App
2 days ago
Veterans Day Apple Watch Activity Challenge Launches November 11
Veterans Day Apple Watch Activity Challenge Launches November 11
2 days ago