Avoid using apex:includeScript

< 1 min read

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>.

Updated on March 21, 2025
Was it helpful ?