• On CHOW: Can girls use the guys' bathroom?
advertisement
June 19, 2007 12:00 AM PDT

iPhone Web pages ("apps") should be 480 pixels wide, 10 MB maximum

by Ben Wilson
  • Font size
  • Print
  • Post a comment

Tony Chang from the University of Washington's Emerging Technology department has posted notes from the Developing Web Sites for iPhone session at WWDC where Apple told developers they could "learn iPhone best practices for ensuring optimal web development of your existing website, or hosted web application."

A few salient points:

  • 480 pixel page width Apple recommends that developers use a 480 pixel-width stylesheet for iPhone-deliverable Web pages/apps. The reason, apparently: the iPhone's screen is 320x480 in portrait mode, 480x320 in landscape mode. Pages should scale down to 320 pixel-width when in portrait mode, rather than beind styled with 320 pixel-width initially then having to be stretched to 480 pixel-width for landscape mode.
  • 10MB max for HTML, Javascript There is a 10MB maximum for HTML pages, and a 10MB maximum for Javascript allocation. In addition, there is a 5 second maximum runtime limit for Javascript. These are both apparent attempts at ensuring stability for the Safari browser on the iPhone.
  • Pageview Apple discussed a feature called "Pageview" during the session that allows multiple Web pages to be viewed simultaneously in the absence of true windows as are used by the desktop version of Mac OS X. There is a maximum of 8 documents (or Web pages) that can be viewed simultaneously using this feature.
  • Controls On the iPhone, one finger movement pans across the page. Pressing and holding the screen displays an information bubble about the page/app. Scroll wheel events are accessed via two-finder movement.
  • QuickTime Links directly QuickTime-playable content automatically invoke full screen video playback. Apple recommends that Web developers provide low-bitrate versions of QuickTime media, and use the "iPhone" setting for QuickTime export.

Feedback? info@iphoneatlas.com.

Recent posts from iPhone Atlas
Words With Friends: Like Scrabulous for iPhone!
How Epic fit the Unreal Engine into the iPhone
Apple releases iPhone OS SDK 3.2 beta 4 for iPad
iPhone 4G: 25 most-wanted features
Klipsch Image X10i: Ideal earphones for the iPod Classic
Eliminate's 3G multiplayer: How'd they do that?
EFF knocks iPhone developer license agreement
Attack of the iPhone clones

Search iPhone Atlas

advertisement

About iPhone Atlas

iPhone Atlas helps you navigate the ins and outs of Apple iPhone ownership with how-tos, troubleshooting information, news, reviews, and more. Got a tip? Want to contact us? E-mail iphoneatlas@cnet.com.

Add this feed to your online news reader

iPhone Atlas topics