UI best practices
In any web-based applications, loading and rendering of the user interface in the browser contributes a lot in overall response time. It can even sometimes affect the processing on the server. In this section, we will talk about various UI best practices for improving the performance of the Portal.
Reducing the number of JavaScript files
JavaScript files are an integral part of web pages. There are two ways to include JavaScript in an HTML response:
One way is to embed JavaScript directly in the response using the
<script>
tagThe second is by referring to an independent JavaScript file using the
<script>
tag
It is recommended to include JavaScript using the second option. This allows the browser to cache JavaScript files separately in the browser cache. With the use of powerful JavaScript frameworks such as jQuery, YUI, Alloy UI, and so on, it is possible that one HTML page might be loading many different JavaScript files. This can slow down loading of the page...