Page 1 of 5

Smart-loading the Javascript

Posted: Wed Aug 15, 2012 9:03 am
by Joseph Yeung

Hi,

One thing I like, vary much, about Tiggzi is that it is highly flexible, which once and again proves vitally important in app and/or web development.

My question: I would like to know if I could control where the multiple javascript is loaded into the page. It looks like currently almost 90% of these javascript is placed in the section of the page when loaded, meaning users have to sit and wait until the page becomes ready.

Can I have control on (i) which ones of these scripts can go to the footer or (ii) not-loading at all? How?

p.s. I checked my Chrome Developer Console when testing the app, and found the timeline of these scripts were not over-impressive. Many goes beyond 450 ms, and there are many of them. Thus, this question.


Smart-loading the Javascript

Posted: Wed Aug 15, 2012 7:21 pm
by maxkatz

We are aware of this, but there is no option right now to specify where and when JavaScript files will be loaded. We will be adding this option in our new HTML5 builder.

For some components -- we do load JavaScript dynamically (only if a component is present on a page).


Smart-loading the Javascript

Posted: Thu Aug 16, 2012 1:49 am
by Joseph Yeung

Ok, as a getting-around, could I export (1) the project/ package from Tiggzi, and then (2) edit the html file, then (3) rebuild it in Tiggzi (as I do in PhoneGap)?

This might be a little bit far-fetched, but for its own sake I would like to know if the above method is viable or not.

Many thanks!


Smart-loading the Javascript

Posted: Thu Aug 16, 2012 2:58 am
by maxkatz

Yes, that's possible. Once you export the app you can do anything you want.


Smart-loading the Javascript

Posted: Thu Aug 16, 2012 4:49 am
by Joseph Yeung

But, how can I import it back to Tiggzi, after I am done with editing the html file?


Smart-loading the Javascript

Posted: Thu Aug 16, 2012 2:13 pm
by maxkatz

Not yet..


Smart-loading the Javascript

Posted: Thu Aug 16, 2012 3:28 pm
by Joseph Yeung

Did you mean importing was not yet supported?


Smart-loading the Javascript

Posted: Thu Aug 16, 2012 3:29 pm
by maxkatz

Yes, importing back is not yet supported once you made changes.


Smart-loading the Javascript

Posted: Thu Aug 16, 2012 3:34 pm
by Joseph Yeung

Ok, I see. So, I have to build it and then at last export it before doing tweaking.


Smart-loading the Javascript

Posted: Thu Aug 16, 2012 3:42 pm
by maxkatz

Yes