These guys succeeded to keep it covered and I was only told: “Come here and work with us for a week.” Being curious enough I succumbed to the temptation and taken the job.
The evening I came they had shown me a beautiful application with many windows, forms, grids, accordions. The application was very complex and I immediately knew that I’m going to work with pros. Uttering words of commendations I was still in a mystery because I still didn’t know what I was there for.
So I asked: “What do you expect from me that you were able to develop this alone?” They said: “Well, it is slow!”
Indeed, Ext window with a form and grid took around 4 seconds to show all it contents before the user could interact with it. And it was intranet! No slow internet connection bottlenecks.
“Yes, that’s too much! Let’s start tomorrow to find out why”, I said.
To keep it short, by the end of the week, when done, the very same Ext window opened in less than 500ms. Well done, isn’t it.
Anyway, what could be the reasons why it was that slow in the first place?
- And probably worst: In this kind of loading a request is sent to deliver a component, let’s say a grid. The grid code is returned, the grid is instantiated and rendered and now it needs data. So another request is sent to deliver the JSON data. It’s just too much.
Take this please as my observation and my experience. There may be cases when component loading can work better and faster and I’ll be only glad if I’ll have an opportunity to see such application.