Apple's Myriad JavaScript Frameworks
PastryKit is an Apple-internal framework focusing on iPhone-style UI in a WebKit view. Used by the iPhone team.
PastryKit is an Apple-internal framework focusing on iPhone-style UI in a WebKit view. Used by the iPhone team.
There’s also some interesting takeaways not from PastryKit itself, but from the way the iPhone user guide is implemented. Most of the data on the page – including each menu icon (base64 encoded) – is located in a single 650kb JSON-encoded file called content.json. This means the initial loading of the page is quite slower than the user would normally expect, but once the initial payload has been delivered, it’s a relatively smooth browsing experience thereafter.
This data is stored locally in HTML5, allowing the user to continue reading even while offline.
Here's the slightly unminified version (using jsbeautifier.org) of the code
PastryKit