Hi,

The loader will load all scripts included via add-script asynchronously. In 
source mode your scripts will be loaded before qooxdoo code, because all 
scripts will be loaded async. But in build mode the code is directly included 
into the loader and will be executed synchronously.

The only advice I can give you is to wrap your third party lib as a qooxdoo 
library.

Gruß
Mustafa Sak

Applications & Integration

1&1 Internet AG
Ernst-Frey-Straße 10
DE-76135 Karlsruhe

Von: Sanne Peters [mailto:sa...@realtimesolutions.nl]
Gesendet: Donnerstag, 16. Oktober 2014 09:56
An: qooxdoo Development
Betreff: [qooxdoo-devel] loading 3rd party libraries before qooxdoo's code

Hi all,

I've got a third party (ish) library (that I made myself) from which I use some 
functions in my custom theme.

At first I manually added a script tag to the code so  that ran the code before 
the qooxdoo code was run and the function was of course available to the theme.

like so:

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>PlanningTool</title>
  <script type="text/javascript" src="3rd-party/em.js"></script>
  <script type="text/javascript" src="script/my-app.js"></script>
</head>
<body></body>
</html>

But that is not very maintainable....

So I decided to let qooxdoo's build system take care of it like so:

"source-hybrid" :
    {
      "add-script" :  [{       "uri" : "3rd-party/em.js"    }]
    }


but this adds the script after the qooxdoo code... which is exactly what I do 
not want. Is there a way I can tweak/set the build system to make it do what I 
want?

thanks in advance,

Sanne
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to