Run bare code; speed up Domino
Run bare code; speed up Domino
Angie Schottmuller
Administrators worrying over a glacially performing Domino site can use this tip to speed things up. Reader Angie Schottmuller tells us that stripped code runs better.
Every wonder how to improve the performance of your Domino web site? Your well-commented code may be slowing it down. To optimize the performance of your site, clean up all your external referenced files.
Remove all comments, line breaks, and tabs. Rename your variables to the shortest possible names. The code that results will not be very readable to be sure, but will allow the browser to cache a much simpler file. Depending on the amount of comments you take out, and how many extraneous characters you remove, you could drastically improve your Domino site's performance, especially on pages that use extensive scripts.
But what about reading the file when it comes time for code maintenance? Create a copy of your well-commented code first, and then strip out the unnecessary elements. Save the original in a code library, but put the stripped-down code on the site. Team Studio's Librarian helps take full advantage of this! Good luck!
Angie Schottmuller is an application developer from Minnesota. She specializes in Domino Web Development (Javascript, CSS, and DHTML).
Was this tip helpful? Please take a minute to let us know.
Start the conversation
0 comments