Posts

Showing posts from November, 2021

Getting Started with Apex

Image
What is Apex ?  Apex, a strongly typed, object-oriented programming language, empowers developers to execute flow and transaction control statements on the Salesforce servers in conjunction with calls to the API. It's a proprietary language developed by Salesforce, specifically designed to enable the creation of robust business logic within the Salesforce platform. With its syntactical similarity to Java, Apex serves as the backend code that can manipulate data in Salesforce, execute complex validation rules, and automate intricate business processes. Critical features of Apex include: Integration with Salesforce Data : Apex allows you to write complex queries and transactions against the data stored in Salesforce. Transactional Control: Operations in Apex are transactional, meaning that all DML operations can be rolled back if any error occurs during the transaction process. Governor Limits: Salesforce imposes runtime limits, known as governor limits, to ensure that runaway Apex...

Lightning Components Performance Best Practices

Optimizing the performance of Lightning components is crucial for delivering fast and responsive user experiences in Salesforce applications.  Here are some best practices to improve the performance of Lightning components: Use minified versions of libraries and style sheets Use a content delivery network (CDN) Enable browser caching Use smaller image files CDN and Browser Caching wherever possible is a given.  Cloudflare CDN was used. Akamai is another common option. this is a must-have Custom Fonts (TTF files) were used from Google in the site implementation which was surprisingly taking a long time for browsers to download and use. So we moved to standard fonts which increased the score significantly. If you absolutely need to use Custom Fonts, then there are options in the community to preload this custom font as a static resource which loads faster compared to the Google Reference\ The CSS file was heavily optimized and instead of using images, we used CSS styles for some...