Book Image

Learning Salesforce Lightning Application Development

By : Mohit Shrivatsava
Book Image

Learning Salesforce Lightning Application Development

By: Mohit Shrivatsava

Overview of this book

Built on the Salesforce App Cloud, the new Salesforce Lightning Experience combines three major components: Lightning Design System, Lightning App Builder, and Lightning Components, to provide an enhanced user experience. This book will enable you to quickly create modern, enterprise apps with Lightning Component Framework. You will start by building simple Lightning Components and understanding the Lightning Components architecture. The chapters cover the basics of Lightning Component Framework semantics and syntax, the security features provided by Locker Service, and use of third-party libraries inside Lightning Components. The later chapters focus on debugging, performance tuning, testing using Lightning Testing Services, and how to publish Lightning Components on Salesforce AppExchange.
Table of Contents (22 chapters)
Title Page
PacktPub.com
Foreword
Contributors
Preface
Index

Chapter 9. Performance Tuning Your Lightning Component

In this chapter, we will dig deeper into performance considerations when you are building Lightning Components. We will explore the concept of stored actions, which are caching mechanisms available to cache a dataset to improve its performance. We will also learn how to design your backend Apex code to improve performance.

We will explore how tags such as aura:if used inside aura:iteration within a large dataset can cause rendering issues. We will look into strategies to keep the number of components to a minimum to improve load and rendering time. We will also look into some Lightning base components that can reduce work and code complexity and can add significant performance improvements.

In this chapter, we will explore the following topics: 

  • Storable actions
  • Lightning Component tags that can cause performance issues
  • The benefits of lazy loading using $A.createComponent()
  • Events architecture for improving performance
  • Server-side Apex optimization...