开发者

Switching page content in iphone UIWebview html5

I'm building an iphone app. I have multiple "pages/sections" of content, and I'd like to see what you all thought was the best way to swap the content out. I'm using jquery. This doesn't look like a typical ip开发者_Python百科hone app, and so I'm not using jqtouch.

Currently, I have a container div and I use the jquery load method to load in the different bits of content from separate html pages. This it works fine in theory but it's not "snappy" enough.

I tried to put all of the content on the main page in a hidden div and then use clone().appendTo... method but this was even slower (makes sense that it was slow in hind sight). I'm wondering if anyone could recommend a faster way?


The slowness was caused by the way I was animating the page not the content loading.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜