There is an interesting article about optimising YUI for Safari/iPhone at: http://tinyurl.com/y97karc (there was a problem with the blog's database connection, so this links to a cached version)
With the following in it: Some examples of the kinds of things an iPhone-specific site doesn’t need: > > * Keyboard navigation and shortcuts: The iPhone doesn’t have arrow keys > and the keyboard only appears when a text input element has focus, so code > that handles keyboard shortcuts and navigation events is unnecessary. > * Hover states and mouse movement handlers: Since the iPhone is a > touchscreen device, there’s no mouse cursor and thus no way for the user to > hover over an element. Mobile Safari fires the mousemove and mouseover > events just before the mousedown, mouseup, and click events, and it fires > the mouseout event when an element loses focus. > * Context menus: There’s no way to right-click or control-click on the > iPhone, so the contextmenu event cannot be triggered. > * Text selection and clipboard handlers: Sadly, the iPhone does not > provide clipboard functionality or a way to select text in an input element, > so these handlers are useless. > I guess you could edit all these parts out of the uncompressed jQuery source, and then compress it all down to less than 25Kb - has anyone done this? On Thu, Jan 14, 2010 at 9:30 AM, m-schmidt <micha_schm...@me.com> wrote: > Hi, > > the iPhone has a cache limit of 25KB, so the jquery script file will > never be cached. Is it possible to split the jquery file in 5-10 > smaller files for the iPhone? > > thanks, > Micha >