Alex6173632
Posts: 0
Joined: Sat Aug 24, 2013 8:37 am

Loading page, white page, splash screen

Hi all,

thanks again for help. By a friend I got a very nice site to test the speed. For this I needed only a locally webserver on my mac and then I could test my project as public website with this tool.

The result shows, that everything is connected with the big javascript files of jquery.
http://gtmetrix.com/

But at first on the list I get the message, that the project produces a lot: "Defer parsing of JavaScript".

Especially this parsing needs already 22,62 seconds of time, to finish loading the project.
Now my question. How I can settle this problem to defer parsing, if in each project of appery, the head begins like this:

"

script type="text/javascript" src="files/resources/lib/store/json2.js"
script type="text/javascript" src="files/resources/lib/jquery/jquery-1.8.2.js"
script type="text/javascript" src="files/resources/lib/jquerymobile/1.3.0/jquery.mobile-1.3.0.js"
script type="text/javascript" src="files/resources/js/mobilebase.js"
script type="text/javascript" src="files/resources/lib/event/customEventHandler.js"/script
script type="text/javascript" src="files/resources/lib/base/sha1.js"
script type="text/javascript" src="files/resources/lib/base/oauth.js"
script type="text/javascript" src="files/resources/lib/base/contexts.js"
script type="text/javascript" src="files/resources/lib/base/jsonpath.js"
script type="text/javascript" src="files/resources/lib/base/jquery.xml2json.min.js"
script type="text/javascript" src="files/resources/lib/base/appery.js"
script type="text/javascript" src="files/resources/lib/get_target_platform.js"
script type="text/javascript" src="files/resources/lib/cordova.js"
script type="text/javascript" src="files/resources/lib/childbrowser.js"
script type="text/javascript" src="files/views/assets/js/fehlermeldung.js"
script type="text/javascript" src="files/views/assets/js/my_own_script.js"script language="JavaScript" type="text/javascript"

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Loading page, white page, splash screen

Hello Alex,

Do you have any problems with yours app? Why did you try to test the speed?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Loading page, white page, splash screen

Just to add, you have full control over the app source if you switch to Source tab. Do keep in mind that once you start making changes in source, the visual builder won't reflect the changes.

Elena
Posts: 0
Joined: Thu Aug 22, 2013 4:36 am

Loading page, white page, splash screen

@Igor

I've the same problem. My App (especially) under Windows Phone is extremely slowly. On Iphone and Android it's a bit faster, but I think this is more connected with the fact, that Iphone and my Android phone are faster in general by hardware.
So I was interested where the problem starts and used the console in Google Browser and there I used the profile to measure time.
But yet until now I didn't found a solution for the problem. I don't know what is used and what is unused in this very big code of jquery and jquery.mobile.
And the main problems starts, that also me cannot upload my finished app to Microsoft, because as well as at Apple you need a certificate, or in other words Microsoft check and test the app before they bring the app to market. And Microsoft also wrote me, that the app starts to slowly.

So in general in cannot be the a wrong or bad code, which makes the app slowly.
It must be in 80% connected with something of jquery or appery and jquery or or.
I totally wonder, why nobody else has the same problem, or don't write this here. On the other hand I can find here many other entries, where people wrote that there app is also hanging with white screen in the beginning.

@Max
Thanks. I know. But is it connected with our probem, I think no. The source code is only a bit better to handle and a bit faster to work with.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Loading page, white page, splash screen

There are other posts that discuss about performance, for example here is a very good and recent one: https://getsatisfaction.com/apperyio/...

Elena
Posts: 0
Joined: Thu Aug 22, 2013 4:36 am

Loading page, white page, splash screen

Thank you Max!!!.

I'll pay attention to this text, maybe he'll found a nice solution, in any case it seems it's the same problem.

Elena
Posts: 0
Joined: Thu Aug 22, 2013 4:36 am

Loading page, white page, splash screen

I found maybe the reason for my problem. In my HTML file are many tables, about 25 tables with about 500 rows (all). I searched already in google for solutions, but until now I didn't found a really good and helping solution.
Is here someone, who has maybe THE idea at all ?. In general my tables looks always like this:

< table id="" style="table-layout:fixed;text-align:left;color:#000000;"
< tbody
< colgroup
< col width="1* "
< /colgroup
< tr
< td
......

< /td
< /tr
< /tbody
< /table

I think the main problem in this case is the rendering, here especially at IE from Microsoft. The IE is known for making stress (always) but this would also explain, why espcially on Windows Phone it takes so much time.

But are here some guys with a very good idea ?.

Thanks

Anton Artyukh5836028
Posts: 0
Joined: Wed May 08, 2013 12:57 pm

Loading page, white page, splash screen

Not so easy to implement, but can do the trick...

Create virtual table. Big number of rows is allocating large amount of memory in browser. But you can generate new rows and remove rows above when user scrolls down. And do same trick for scrolling up.

Or more simpler -- create pagination for your big table.

Elena
Posts: 0
Joined: Thu Aug 22, 2013 4:36 am

Loading page, white page, splash screen

Hi dear Anton,

thanks for your answer. But to be honest, here I'm right now a bit dumb. What do you mean with "Or more simpler -- create pagination for your big table. ".
I never heard about this.
What is exactly "pagination " and how I can realize this ?. What is needed to realize this ?.

Thanks in advance

Anton Artyukh5836028
Posts: 0
Joined: Wed May 08, 2013 12:57 pm

Loading page, white page, splash screen

Hi Elena,

Check this http://docs.appery.io/tutorials/build...

I suggest you create buttons/links Next Page for loading new set of data (which will replace existing data in the table).

Or are you sure, that your users always needs full data set? May be Search action will save them time and device memory/CPU?

Or data set with default ordering and user can see only 20 items, button Load More and buttons to reorder data by any column.

I don't know kind of your data, so I just suggest you options.

Return to “Issues”