javascript - AJAX on Android Webview: Should I use JSON or HTML? -


i building feed application infinite scroll inside native android application using webview. first tried ionic framework disappointed performance.

i thinking of developing in pure jquery , responsive html/css achieve superior performance. 1 thing considering weather emit html or json server side apis.

emitting json means client side dom manipulation can again hurt performance. looking maximum performance.

whereas, not sure emitting html idea better maintainability of application.

what guys recommend?

injecting json should better solution.

  1. in case manipulation or operation on data required in later phase of development.
  2. possible security issue.you mixing control(tags) , data. preventing inline script execution can protect against attacks extend.

this said if implemented , right reasons html might not total bad choice. but, performance over-head might not right reason. again haven't tested confirm this.

you can have @ this question.


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -