Joseph Yeung
Posts: 0
Joined: Tue Aug 14, 2012 7:48 am

Smart-loading the Javascript

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.

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

Smart-loading the Javascript

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).

Joseph Yeung
Posts: 0
Joined: Tue Aug 14, 2012 7:48 am

Smart-loading the Javascript

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!

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

Smart-loading the Javascript

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

Joseph Yeung
Posts: 0
Joined: Tue Aug 14, 2012 7:48 am

Smart-loading the Javascript

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

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

Smart-loading the Javascript

Not yet..

Joseph Yeung
Posts: 0
Joined: Tue Aug 14, 2012 7:48 am

Smart-loading the Javascript

Did you mean importing was not yet supported?

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

Smart-loading the Javascript

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

Joseph Yeung
Posts: 0
Joined: Tue Aug 14, 2012 7:48 am

Smart-loading the Javascript

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

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

Smart-loading the Javascript

Yes

Return to “Issues”