WebTales / rubedo-backoffice-ui

Other
8 stars 4 forks source link

Slow loading time #11

Open ayurmedia opened 10 years ago

ayurmedia commented 10 years ago

Caching is forced to be off by default in ext.js. There should be an option in admin-interface to turn on caching if you are in production-server and don't change ext-components. Loading times improve a lot with this change.

suggestion:

app.js:

Ext.Loader.setConfig({ enabled: true, disableCaching: false, paths: { Ext: '.', 'Ext.ux': 'resources/ux' } }); ...

Alexandru-Dobre commented 10 years ago

This option used to not change much due to server side implementation. I will add it to the install tool along with the "use ext debug" option. For even better performance in production i will consider compiling the app with Sencha CMD 4.

ayurmedia commented 10 years ago

Initial loading of backoffice is affected by this flag, as it allows caching of many javascript files. reloading backoffice shows speed difference. Combining and Minifying the css and js in backoffice would be good, as there are really many requests. i tried to combine all the js into one file, but then gui does not get initialized. hopefully CMD 4 optimizes code.

When initial loading is done then extjs speed is ok for usage. (as the following requests are mainly ajax calls).