XPages: 2 very easy performance optimization tricks

February 23rd, 2012

Here are 2 very easy ways to optimize performance for your XPages applications:

  • Enable "Use runtime optimized JavaScript and CSS resources" to have your JS and CSS files combined into fewer files. This reduces the number of HTTP requests that the browser has to make against your server and application and thereby makes the site load much faster.
  • Select "GZip" as the compression method to have your Domino server compress files and images. This reduces the amount of data that the browser has to retrieve from your server and application which again makes your application load much faster

Both of these settings are in Application Properties on the XPages tab.

Once you have done those two, you now have more time to go into detailed performance optimization and look at optimizing backend code, server settings, and much more. Tim Tripcony has answered a question in the XPages Development forum about performance optimization that has a lot of details about performance optimization.

Tags: , , ,

6 Responses to “XPages: 2 very easy performance optimization tricks”

  1. Henning Schmidt Says:

    Hi Per,

    your tips are valuable and true for production environments and pre release testing. However I wouldn't recommend to activate the compression settings during the development phase since changes in css and javascript resources do not make it to the application as you would expect. You always have to clean your browser's cache and rebuild a couple of times before you see your changes which can be very frustrating. So as soon as you are done with development and testing activate the compression settings and be happy with the faster loading site 😉

  2. Per Henrik Lausten Says:

    Great tip, Henning!

  3. Ulrich Krause Says:

    I also recommend to read this post in the XPages Development Forum http://www-10.lotus.com/ldd/xpagesforum.nsf/topicThread.xsp?action=openDocument&documentId=56E9B8537DA50A90852579A6002EAC64

    Not a performance tipp, but a hint why your application might be slow

  4. Ryan Case Says:

    I have tried to use the runtime optimized CSS and JS but it rendered my CSS useless. I think it might be because one of my CSS is a Page object and not a StyleSheet object. I did that to compute a few image locations since it is a CMS tool.

  5. XPage settings | XPages.dk Says:

    [...] 2 very easy performance optimization tricks This entry was posted in XPage by Jakob Majkilde. Bookmark the permalink. [...]

  6. Ove Stoerholt Says:

    Hi Per

    I noticed that an application I'm building lost the classes in the "second" stylesheet loaded when having checked "Use runtime optimized Javascript and CSS resources" (think it's enabled by default). Had to uncheck...
    And I am using only stylesheet objects...

    Sad of course since I wan't as good performance as possible. 🙂

    Ove