寻找轻量级移动HTML5 / JavaScript框架的建议 [英] Looking for a recommendation for a lightweight mobile HTML5/JavaScript framework

查看:99
本文介绍了寻找轻量级移动HTML5 / JavaScript框架的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道标题充满了流行语;-)。我将开发一个仅针对iOS和Android(目前)的Web应用程序。它主要是关于带有向导组件的数据表单。唯一的魔力是,用户可以离线使用部分应用程序(通过向导并在本地保存数据,而不是再次联机时将其推送到服务器)。

I know the headline is full of buzz words ;-). I am going to develop a web application targeting iOS and Android only (currently). It's mainly just about forms over data with a wizard component. The only "magic" will be, that a user can use parts of the app offline (go through the wizard and save the data locally, than pushing it to the server when getting online again).

我是一名ASP.NET MVC开发人员,我在jQuery方面有一些经验,所以我的第一个目的是开发应用程序。

I am an ASP.NET MVC developer and I have some experience in jQuery, so my first intention is to develop the application with that.

但是也许我应该考虑另一种方法吗?你对轻量级框架有什么建议吗(理想情况下是基于jQuery)?

But maybe there is another approach which I should consider out there? Do you have any recommendations for a lightweight framework to handle this (ideally based on jQuery)?

我发现的所有东西都不是一个选项,主要是因为它太慢了(Sencha Touch和jQuery Mobile)。

Everything I found until now isn't an option, primarily because it's too slow (Sencha Touch and jQuery Mobile).

推荐答案

我认识的唯一其他框架是jQtouch。您也可以尝试 Appcelerator的Titanium Mobile ,这比HTML5要好得多因为它是原生的。它没有Native Apps的所有灵活性,但是对于你需要它应该绰绰有余。它也很容易使用。如果它只是Android和iOS,你希望支持那么这应该可行。

The only other framework I know is jQtouch. You can also try Appcelerator's Titanium Mobile, this performs much better than HTML5 since it's native. It doesn't have all the flexibility of Native Apps but for what you need it should be more than enough. It's easy to use too. If it's only Android and iOS you're looking to support then this should work.

GUI速度将始终是HTML5的问题。这些框架非常快,因为它们使用的是CSS3动画,这是Web-Kit浏览器的最佳选择。他们还检测触摸事件,这与浏览器在用户交互时的行为速度一样快。

The GUI speed will always be a problem with HTML5. Those frameworks are pretty fast since they use CSS3 animations which is the best you'll get with Web-Kit browsers. They are also detecting touch events which is as fast as the browser will behave with user interaction.

我能看到的唯一一个尝试让它更快一点的选择就是你从头开始编码,但我怀疑你会得到更好的表现。我猜你一直在用设备测试,发现速度太可怕了。在像iPhone 3G或3GS这样的设备上,HTML5表现得非常慢。即使在iPad上它也会变得棘手。

The only option I can see to try and make it a bit faster is you coding it from scratch but I doubt you'll get any better performance. I'm guessing you've been testing with devices and found the speed terrible. On devices like the iPhone 3G or 3GS HTML5 performs very slow. Even on the iPad it can get tricky.

这是一篇很棒的文章,讨论如何增强HTML5 GUI性能。

Here's a great article which talks about enhancing HTML5 GUI performance.

这篇文章讨论了iPad上的JS速度。

This other article talks about JS speed on the iPad.

不幸的是,HTML5并不是每个人都期望它的神奇解决方案。在向他们展示结果后,我不得不与太多失望的客户打交道。他们习惯于原生应用程序,并认为HTML5将为他们带来一个看起来同样好的廉价解决方案。

Unfortunately HTML5 is not the magical solution everyone expects it to be at the moment. I've had to deal with too many disappointed clients after you show them the results. They were used to native Apps and thought HTML5 will bring them a cheap solution that would look just as good.

我建议你提前告知你的老板或客户。无论如何,你的应用程序听起来很简单,无论如何都应该在HTML5上正常工作。我可以给你的一条建议就是避免画布,这会非常慢。

I suggest you let your boss or client know this in advance. Anyway, your App sounds simple enough that should work fine on HTML5 anyway. One piece of advice I can give you for sure is to avoid Canvas, that would be super slow.

对于阴沉的帖子感到抱歉。

Sorry about the gloomy post.

这篇关于寻找轻量级移动HTML5 / JavaScript框架的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆