Showing posts with label GWT. Show all posts
Showing posts with label GWT. Show all posts

Nov 13, 2014

How to improve UI performance for legacy applications

Recently I came across a scenario where customer reported that he installed application on new server with all software upgraded to their latest versions (including browsers) and suddenly he saw UI taking 20 seconds to load, and sometimes gave a script timeout error. Application was developed using GWT. After trying out many things, starting the browsers in safe mode helped and the UI load time reduced from 20 to 2-3 seconds.

Below are some of the steps that helped us speed up the thingIn case you have any other ideas/comments, please post in the comment section.

Sep 26, 2014

How to handle uncaught client side exceptions in GWT?

Sometimes it gets tricky to handle client side exceptions in GWT. I have been to such situations many times before where you would expect everything to work perfectly but you found something is not working. Sometimes even no logs gets generated. It gets really hard to debug apps then.  GWT.UncaughtExceptionHandler serves that purpose for you. This interface is used to catch exceptions at the "top level" just before they escape to the browser. In development mode, the default handler prints the stack trace to the log file while in production mode, default handler is null and thus exceptions are escaped and can be troubleshooted by JavaScript debugger.  Below is a simple code snipped to create a handler for all uncaught
exceptions in a module.