Skip to content

ProjectModernising Visualforce and Aura to LWC

  • Industry

    Global clients across industries

  • Cloud

    Lightning Web Components

  • Role

    Salesforce developer

  • Period

    Independent, 2023 – present

  • Outcome

    40% faster UI rendering

Problem

Large Visualforce pages and Aura components had grown into monoliths: one file doing data access, layout, state and styling. They rendered slowly, were hard to change safely and could not be reused from one page to the next.

What I built

A set of small, reusable Lightning Web Components that took over from the monolithic Visualforce and Aura components, for global clients. UI rendering performance improved by 40%.

  • 40%faster UI rendering

How it works

The pattern: split by responsibility. A container component owns data and state, and presentational children take @api properties and emit events. That keeps each piece testable and lets the same child appear on several pages.

Render less. LWC’s reactive tracking only re-renders what depends on a changed field. Splitting a big template into children with narrow inputs stops one change from repainting the whole page. Lists use stable key values so the diff stays small, and data comes through @wire or cacheable Apex rather than being refetched on every interaction.

Compose with slots. Slots let a shell component provide the frame (header, actions, body) while the page decides the content, which removes the copy-paste that made the old pages monolithic.

Interop during migration. Aura and Visualforce can host LWCs, so pages were moved one component at a time rather than rewritten in one go.

Illustrative: rebuilt for this site, not client coderecordPanel.html
<template>
  <article class="slds-card">
      <header class="slds-card__header slds-grid">
          <h2 class="slds-card__header-title">{title}</h2>
          <div class="slds-no-flex"><slot name="actions"></slot></div>
      </header>
      <div class="slds-card__body slds-card__body_inner">
          <template if:true={isLoading}>
              <lightning-spinner alternative-text="Loading"></lightning-spinner>
          </template>
          <slot></slot>
      </div>
  </article>
</template>

Built with the Salesforce Lightning Design System. Not affiliated with Salesforce.

App Launcher