Page 1 of 2

Contacts Component very slow and display bug

Posted: Mon Aug 11, 2014 10:32 am
by Vincent7036552

Hi guys,

We followed the appery tutorial (http://devcenter.appery.io/tutorials/...) to show the phone contacts from address book.

It works but we have a display bug when loading the list and it's very slow to load the page (at least 10 seconds). See first screenshot.

Once the page is loaded, the contact list is displayed correctly and the event on each contact works. See second screenshot.

How could we avoid this display bug and make the page load faster?

Thanks!

Image


Contacts Component very slow and display bug

Posted: Mon Aug 11, 2014 12:55 pm
by Evgene Karachevtsev

Hello Vincent,

Could you please tell me what version of the OS and what the device do you use, because speed of execution depends on the performance of the device?


Contacts Component very slow and display bug

Posted: Mon Aug 11, 2014 12:59 pm
by Vincent7036552

Hi Evgene,

Thanks for your reply: iPhone 4 + iOS 7.1.1

Vincent


Contacts Component very slow and display bug

Posted: Mon Aug 11, 2014 2:01 pm
by Evgene Karachevtsev

Vincent,

In addition, the number of the contacts also affects the time of their receipt:
http://stackoverflow.com/questions/13...


Contacts Component very slow and display bug

Posted: Mon Aug 11, 2014 2:20 pm
by Vincent7036552

Ok thank you for the pointer.

So what would be a good solution? Should we remove images? Would this improve the performances dramatically?

Thanks!


Contacts Component very slow and display bug

Posted: Mon Aug 11, 2014 5:24 pm
by Kateryna Grynko

Hi Vincent,

Yes, this will surely improve the performance. Just delete the unnecessary data to see it.


Contacts Component very slow and display bug

Posted: Tue Aug 12, 2014 8:29 am
by Vincent7036552

Hi Katya,

I removed the images but it's still very slow and there is still the display but when loading the page.

Is there anything we can do to make it load faster and avoid the display bug?

Thanks!


Contacts Component very slow and display bug

Posted: Tue Aug 12, 2014 5:41 pm
by Kateryna Grynko

Hi Vincent,

How many contacts do you load at once? Let's try adding handlers on Success and Complete events in order to check what takes more time: obtaining contacts or generating a list (Success fires after you receive data, Complete fires after mapping is ended). Most probably, there is the second option.


Contacts Component very slow and display bug

Posted: Wed Aug 13, 2014 10:51 am
by Vincent7036552

Hi Katya,

There are about 300 contacts to load.

I added some debug and what takes so long is generating the list. During the rendering of the list, the design is broken and the app is frozen.

What should I do then?

Thanks!


Contacts Component very slow and display bug

Posted: Thu Aug 14, 2014 1:29 pm
by Vincent7036552

Hi guys,

Any update on this?

Thanks