Hi Linucos

If you want the developer to be able to use any Qx class at any time, then
the class has to be loaded in the browser before you can run the
developer's code; the easiest way is as you suggest - to load all classes
(build with a "./generate.py source-all") but you're right it's going to
be big and slow.

If you want to speed up loading you'll need to do your own dependency
analysis on the developer's code so that if a class they need is not yet
in the browser, you can go and get it.  I've had success using uglify-js
to parse the AST for javascript (it's for node.js so you would have to
look at porting but at first glance that looks trivial).

John

On 01/09/2011 06:36, "linucos" <[email protected]> wrote:

>Hi All,
>    I ask this question for many times and i have not got me a "useful"
>one.
>I would describe the question again.
>    1. I want to design a system like webos and application development in
>the system is allowed.
>    2. I want to use qooxdoo to be the GUI part.
>    3. I can use "qx.io.ScriptLoader" to load a js file (so-called
>application in my system) and the js file is just
>        a develper's application.
>    
>    My question is :
>    1. I need to load whole qx framework before any application, right?
>    2. To load the whole framework (js file about 1.5Mb) a the first page
>is
>being loaded is very slow, right?
>    3. We can say "Desktop" is a special application in my system and
>"Desktop" will just load classes it needs
>        while first time loaded, right?
>    4. But, question is a standalone application in qx is about 500K and
>this is big for web page to load...
>  
>    Can some one give me an suggest??Thx.
>
>--
>View this message in context:
>http://qooxdoo.678.n2.nabble.com/Can-you-give-me-a-answer-About-loading-sp
>eed-tp6749010p6749010.html
>Sent from the qooxdoo mailing list archive at Nabble.com.
>
>--------------------------------------------------------------------------
>----
>Special Offer -- Download ArcSight Logger for FREE!
>Finally, a world-class log management solution at an even better
>price-free! And you'll get a free "Love Thy Logs" t-shirt when you
>download Logger. Secure your free ArcSight Logger TODAY!
>http://p.sf.net/sfu/arcsisghtdev2dev
>_______________________________________________
>qooxdoo-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel




------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to