---
title: Avoid Importing Multiple JavaScript Files Individually
description: "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…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/avoid-importing-multiple-javascript-files-individually/"
updated: "2025-03-21"
category: Rules
---

# 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 > Optimizing JavaScript](https://developer.salesforce.com/docs/atlas.en-us.salesforce_visualforce_best_practices.meta/salesforce_visualforce_best_practices/pages_best_practices_perf_webdev_javascript.htm).
