[TIMOB-12096] MobileWeb: Slow tableview when using remote web server
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-12-14T05:50:38.000+0000 |
Affected Version/s | Release 2.1.4 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Mauro Parra-Miranda |
Assignee | Chris Barber |
Created | 2012-12-14T05:21:42.000+0000 |
Updated | 2014-06-19T12:44:09.000+0000 |
Description
Problem
When you create a mobile web app that is using tableviews, the performance will be slow, blocking the UI.
Test case
1. Get the KitchenSink
2. compile it for mobile web
3. publish it in a remote webserver
4. open it from the default browser in android (the one from the default installation).
We tested this either in linux+apache and win2k8 with IIS 7.
The problem is unrelated to table view. Kitchen Sink uses an on-demand loading system that was never designed for internet-scale lag. Whenever a row is clicked, the file behind is then require()'d. This means that the file is not downloaded until the row is clicked. To avoid this problem, the files need to be pre-cached (this can be done via the tiapp.xml file).