EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: crosemffet on December 31, 2013, 03:07:33 PM



Title: concern about web application general speed
Post by: crosemffet on December 31, 2013, 03:07:33 PM
hello everybody and happy new year !.
I'm concerning about general speed of the web application. I want to make it as faster as possible.
question is: if I put easyloader in login page for the modules I use most, will increase speed of the modules once logged in?, example:
easyloader.base = './easyui/';
easyloader.load('accordion');
easyloader.load('datagrid');
easyloader.load('messager');
easyloader.load('panel');
easyloader.load('layour');
easyloader.load('linkbutton');
easyloader.load('menubutton');
or once jquery.easyui.min.js loaded all modules are already loaded?
what's the exact use for easyloader js file to increase performance?
thanks in advance.....


Title: Re: concern about web application general speed
Post by: stworthy on January 01, 2014, 03:51:37 AM
If allmost plugins may be used, include 'jquery.easyui.min.js' file directly in the page. If only a little plugins will be used, use easyloader to load what plugins may be used.
Code:
using(['accordion','datagrid','panel',...],function(){
//...
});