I want to migrate from extjs 3 to extjs 4. I have tested sample Extjs 4 example in rails 3. I have observed that page rendering time is very slow in extjs 4. I don't know what is the reason.
Can anybody tell me, what is the reason behind that? or
is there any problem in my app? and
What should I do to improve the perfomance of extjs 4?
ExtJS 4.0 has performance issues,
ExtJS 4.0.2 is the release you need that fixes most performance issues, it is still slow though...
Google for ExtJS 4 performance
Did you forget to turn off dynamic resource loading? Note that ext*-all.js will speed up your page loading dramatically.
ExtJS 4 is much faster than ExtJS 3. Guys from sencha solved a lot of rendering problems and improved performance greatly.
In the sample link just read the deployment section. The performance there is normal issue for development as in 4th version was introduced ext loader and it is much better for debugging and development using concrete short files of the framework instead of loading big files (more than 100k lines) and you always knows where the problems are.
In production you need to use Sencha SDK which will generate yours application initial required js plus extjs dependencies. It is much better than it was in 3rd version where you need to load all the framework.
You can run Sencha CMD, a ruby gem which dynamically creates your ExtJS 4 css file, allowing you to cut the full css file (~ 500kb !) down to something less ridiculous.
I have outlined this process in April here https://docs.google.com/document/d/1lGfbEoktJNhIpZneeJ2kkjNKOaSYpOse3mnSA5mGEds/edit?usp=sharing
Extjs 4.1 is resolved many issues related to the layouts. If you have nested panels, does better rendering when compared to the Ext 3.
- It may seems to be late reply, but the truth is ExtJS 4.x is much fast than ExtJS 3.x version, more over it made front-end developer to create their application with a MVC pattern approach to organize their coding structure much more clearer an maintainable.
- ExtJS 4.x solve rendering problems an improved in performance over browser compatibility also.
- To answer your question, it may be many reason as stated below.
- Check with the developer tool, which part of js file taking more time to load as compare to extjs 3.x
- you may be using more inner components(adding more items to parents and child component having more sub-components,etc).
- Even you can use the newly-introduced Sencha SDK Tools (download here) makes deployment of any Ext JS 4 application easier than ever. The tools allow you to generate a manifest of all JavaScript dependencies in the form of a JSB3 (JSBuilder file format) file, and create a custom build containing only the code that your application needs.
Note: Its all depends on, how you design your application (Architect).
Thanks
ExtJS 4.x is contain lot of bugs in comparison ExtJS 3.x. I am using both in my different project. for example 4.0.7 contain file upload issue till now so i want to tells my opinion extjs 3.x is more stable release of extjs frame work.
Use MVC feature of Extjs4.0 or later version put store views model controller in different folder and call them using controller.
© 2022 - 2024 — McMap. All rights reserved.