Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

FileAssembly as opposed to DataSourceLoader

$
0
0
isc = "8.3.js";
IscBuild = "3.1p.2014-06-02";


Hi Isomorphic,

when loading the application DataSourceLoader is always requesting the javascript representation of the datasources from the server, which takes in my environment about 2.5 sek. I have created a FileAssembly file which include all ds file like this:

<FileAssembly>
<assemblies>
<FileAssemblyEntry uri="/datasourceAssembly.js">
<components>
<component><type>ds</type><name>tenants</name></component>
<component><type>ds</type><name>portalGlobalData</name></component>
<component><type>ds</type><name>currencies</name></component>
<component><type>ds</type><name>countries</name></component>
.
.
.
.
.
.

and so on and so forth.

The result is a javascript which can be then cached from the browser. I have seen the content of that file is the same as the result of the datasourceloader (without this: if (window.isc == undefined || window.isc.DataSource == undefined){ alert("Can't load DataSources - SmartClient runtime not loaded");}) and the order is different.

Can I use this technique to improve loading performance or there is a better way to do it?

Thanks in advance
zapryano

Viewing all articles
Browse latest Browse all 4756

Trending Articles