[This originally appeared on my dev2dev blog 10-Nov-2007]
Best practices lead to performance improvements in the Tech Preview WLS Admin Console.
The Weblogic Server 10.3 tech preview was recently released. You can read more about it here including links to download it.
I’m very pleased with my work to improve the look and performance of the Admin Console. If you have used the WLS 10.0 Console before the first thing you will notice is the new look. Things are pretty much still in the same place but the look is lighter and smoother. You will also notice a snappier response. A number of changes have been made to improve performance. My work was exclusively in the presentation layer.
Here is a list of some of the best practices used:
- Use CSS and semantic markup for layout rather than tables. For Portal apps this means avoiding the grid layout. Console still uses tables for layout of form controls to preserve the existing look.
- Move all style to external stylesheets. Don’t hard code style in tags or JSPs. This way the dynamic page gets smaller and the stylesheets can be cached. This also makes branding by console extensions easier.
- Keep the junk out of pages. Keep an eye on extra whitespace in JSPs. Use JSP comments <%– — %> rather than HTML comments. There is no need for these to be sent to the client. Prefer JSP documents to JSP pages because they remove whitespace. Console has too many pages to convert all of them to JSP documents but key ones were converted and the new Portal look and feel uses JSP documents.
- Portal themes have their use but Console didn’t need them. Removing themes eliminated a little markup but more importantly simplifies Console look and feel extensions.
- Reduce the number of round trips to the server for images by including multiple images in a single file.This technique, called CSS sprites, was used for new images.
The presentation layer is more than just how the app looks it can have an impact on how it performs.