Avoid importing multiple JavaScript files individually

Impact area

Performance

Severity

Medium

Affected element

Apex Page

Rule ID

SF-0119

Impact

Inefficient JavaScript delivery to the client can result in slow page load times.

Remediation

Combine all JavaScript files into a single file to reduce HTTP requests, and remove duplicate functions as they might result in more than one HTTP request and waste JavaScript execution.

Time to fix

30 min

References

See the Salesforce documentation article: Visualforce Performance: Best Practices > Controlling Data Size.

What's here


Related content

Apex Page rules

Salesforce rules




Last modified on Jun 10, 2020