I am working on a project on a very simple website with 5 pages. Each page is a GWT Widget (UI Binder). I am currently creating objects of all 5 Widgets, when i load the Base Presenter, where i handle all History Token Change Events. The Problem is, the website is really slow to load in Development Mode. When hosted in AppEngine its much better in speed. How can i overcome this Issue.
Earlier i used to create objects on request. ie., if a user clicks a link, i will create the object of that Widget and display it. But if he comes back to previous page and clicks the same link again, it will create a new object and the old objects memory is not cleared (since it is not java after compiling). This is why i created all Objects at the Beginning.
I don't know where i have went wrong. Can anyone please suggest me a suitable technique to overcome this issue.