Performance aspect of dragging UI element in mobile app (NativeScript vs Xamarin vs Ionic)

时间:2018-02-01 18:07:11

标签: xamarin ionic-framework nativescript

It's one of the 'one vs another' type of questions, but I tried to scope the problem as narrow as possible.

I want to create a cross platform mobile application for Android and IOS. Preferably, I'd like to re-use most of the code for web site, which will work in desktop browser (Chrome, IE, Firefox and Safari). Which makes me inclined towards using JavaScript based approach instead of WPF like Xamarin.

My application must support dragging of UI elements (div in case of JavaScript) across the app screen. Few years back I created similar thing using jQuery UI and jQuery Mobile. Although, everything was working smooth in desktop browser, performance on my iPad 2, was very pitiful, even though the size of div was just 64x64 pixels.

I'm not going to use jQuery this time, but I wonder if any of the popular cross-platform frameworks (NativeScript, Xamarin, Ionic) suffer from similar issues.

I think that Xamarin is unlikely to have any of the performance issues, as it will be compiled into native binary. What about the other two? If they don't exhibit such a problem, is there a proved JavaScript library I should be using for UI drags/drops?

I also wasn't able to pinpoint the reason for the response lag I experienced with jQuery on iPad2. I concluded, the only reason for this, was a sub-standard performance of JavaScript VM in Safari.

1 个答案:

答案 0 :(得分:1)

I am not sure about xamarin and nativescript but i am sure that both of their performance is better than ionic.because ionic is just a webview(cordova) not native code.