---
title: "Avoid using apex:includeScript"
description: "Impact Area Manageability Severity Medium Affected Element Apex Component ## Rule ID **SF-0120** ## Impact The `` tag places JavaScript right before the closing `` element, causing the browser to attempt to load the JavaScript before rendering any other content on the page. This…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/salesforce-rules/avoid-using-apexincludescript/"
updated: "2025-03-21"
category: Rules
---

# Avoid using apex:includeScript

Impact Area

Manageability

           Severity

Medium

           Affected Element

Apex Component

## Rule ID

**SF-0120**

## Impact

The `<apex:includeScript>` tag places JavaScript right before the closing `</head>` element, causing the browser to attempt to load the JavaScript before rendering any other content on the page. This may have unintended consequences and/or cause slower page loads.

### Time to fix

40 min

## Remediation

Use the standard HTML` <script>` tag instead of `<apex:includeScript>`.
