---
title: Avoid Importing Images From Sources Other Than Static Resources
description: "Impact Area Manageability Severity Medium Affected Element Apex Page ## Rule ID **SF-0133** ## Impact Inefficient delivery of page components to the client can result in slow page load times. ## Remediation Use static resources to serve JavaScript files, as…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/salesforce-rules/avoid-importing-images-from-sources-other-than-static-resources/"
updated: "2025-03-21"
category: Rules
---

# Avoid Importing Images From Sources Other Than Static Resources

Impact Area

Manageability

           Severity

Medium

           Affected Element

Apex Page

## Rule ID

**SF-0133**

## Impact

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

## Remediation

Use static resources to serve JavaScript files, as well as images, CSS, and other non-changing files. JavaScript and other assets served this way benefit from the caching and content distribution network (CDN) built into Salesforce.

### 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)
- [Visualforce Performance: Best Practices > Optimizing CSS](https://developer.salesforce.com/docs/atlas.en-us.salesforce_visualforce_best_practices.meta/salesforce_visualforce_best_practices/pages_best_practices_perf_webdev_css.htm)
- [Visualforce Performance: Best Practices > Optimizing Image Usage](https://developer.salesforce.com/docs/atlas.en-us.salesforce_visualforce_best_practices.meta/salesforce_visualforce_best_practices/pages_best_practices_perf_webdev_images.htm)
