English 中文(简体)
是否使用剪辑加速了用电话打包的1,305台电话的性能?
原标题:Does using css sprite speed up performance in an html5 iphone app wrapped with phonegap?

I was wondering if creating a sprite for an HTML5 app, and wrapping it with phonegap for iPhone and Android, would increase performance at all. Because the app is offline, so it is only making a call for the image out of local storage.

最佳回答

In theory, no. However, at least on iOS, images aren t pre-loaded for each page load and you sometimes may see a flash as the image is loaded into the page. So a sprite is one way to handle that. Another way is to use some JS to load all of your app s images in the background on the home page. It takes a bit longer for the app to load, but then everything is cached and ready to go.

但是,如果做间谍活动是方便的,则是维修。 只有保存数十份个人形象档案,才能使少数图像 sp缩。

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签