Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Liferay Portal Performance Best Practices

You're reading from   Liferay Portal Performance Best Practices To maximize the performance of your Liferay Portals you need to acquire best practices. By the end of this tutorial you'll understand making the most appropriate architectural decisions, fine-tuning, load testing, and much more.

Arrow left icon
Product type Paperback
Published in Jun 2013
Publisher Packt
ISBN-13 9781782163688
Length 150 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Samir Bhatt Samir Bhatt
Author Profile Icon Samir Bhatt
Samir Bhatt
Arrow right icon
View More author details
Toc

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> tag

  • The 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image